writerperfect-nocondensedparagraphs.diff: no negative paragraph height.
This commit is contained in:
parent
06a3ddea33
commit
112477fa8f
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue