summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-25 11:38:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-25 13:14:46 +0100
commitf6a6f240711d39df9669086453cb3bce34c93cab (patch)
tree995129c5add8221e3283388118a9ef88f05d946a /sw
parent83636d2c09802aeeb1b30078022d228d04da21eb (diff)
coverity#1240270 Copy-paste error
regression from commit 03fe839d6e76ed8b1dfb65093ab59a8904852ff6 Date: Sat Sep 20 15:41:13 2014 +0200 html export: rework image output to use HTML writer Change-Id: If50d4e3cc2d19ea35d41e848cb5b9f92f356bc59
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/htmlflywriter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlflywriter.cxx b/sw/source/filter/html/htmlflywriter.cxx
index 94b51188be83..6a0d313b6316 100644
--- a/sw/source/filter/html/htmlflywriter.cxx
+++ b/sw/source/filter/html/htmlflywriter.cxx
@@ -988,7 +988,7 @@ void SwHTMLWriter::writeFrameFormatOptions(HtmlWriter& aHtml, const SwFrmFmt& rF
((nPrcHeight && nPrcHeight!=255) || aPixelSz.Height()) )
{
OString sHeight;
- if (nPrcWidth)
+ if (nPrcHeight)
sHeight = OString::number(static_cast<sal_Int32>(nPrcHeight)) + "%";
else
sHeight = OString::number(static_cast<sal_Int32>(aPixelSz.Height()));