diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-14 10:36:11 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-14 10:36:11 +0200 |
commit | 112477fa8f6ba59dc39aa8a3c00dca0da07197a3 (patch) | |
tree | 503a9b41b600d301e8c5d7c75f9ba155874d6914 /writerperfect | |
parent | 06a3ddea33ad211035115b61a529b556f84eba8f (diff) |
writerperfect-nocondensedparagraphs.diff: no negative paragraph height.
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/TextRunStyle.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/writerperfect/source/filter/TextRunStyle.cxx b/writerperfect/source/filter/TextRunStyle.cxx index f3e8b0499956..65f79780f61f 100644 --- a/writerperfect/source/filter/TextRunStyle.cxx +++ b/writerperfect/source/filter/TextRunStyle.cxx @@ -77,7 +77,12 @@ void ParagraphStyle::write(DocumentHandler *pHandler) const if (strcmp(k.key(), "fo:margin-top") == 0) propList.insert("fo:margin-top", k()->getStr()); if (strcmp(k.key(), "fo:margin-bottom") == 0) - propList.insert("fo:margin-bottom", k()->getStr()); + { + if (k()->getFloat() > 0.0f) + propList.insert("fo:margin-bottom", k()->getStr()); + else + propList.insert("fo:margin-bottom", 0.0f); + } if (strcmp(k.key(), "fo:line-height") == 0) propList.insert("fo:line-height", k()->getStr()); if (strcmp(k.key(), "fo:break-before") == 0) |