writerperfect-nocondensedparagraphs.diff: no negative paragraph height.

This commit is contained in:
Fridrich Štrba 2010-09-14 10:36:11 +02:00
parent 06a3ddea33
commit 112477fa8f

View file

@ -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)
{
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)