--- writerperfect/source/filter/TextRunStyle.cxx	2006/12/01 12:07:57	1.14
+++ writerperfect/source/filter/TextRunStyle.cxx	2007/03/08 23:09:09	1.15
@@ -75,7 +75,12 @@
 		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) 
