.. and one more comment.   According to the MS-PPT spec. fontSize MUST
be greater than or equal to 1 and less than or equal to 4000.
Please send me any test file you have, there's something wrong going
on in the filter when fontSize=0.  I have to find the correct
fontSize,
else the application default font size will be used.  There's no
fontSize for the paragraph style in PPT.

In general filters write such zero values to make a problem clearly
visible. It's much hard to detect such a problem when the application
defaults are applied.
But I understand that it's an invalid ODF file.  Cool that you fixed
all those ODF violations.

--- a/filters/stage/powerpoint/PptToOdp.cpp
+++ b/filters/stage/powerpoint/PptToOdp.cpp
@@ -1232,7 +1232,9 @@ void PptToOdp::defineTextProperties(KoGe
         style.addProperty("fo:font-family", name, text);
     }
     // fo:font-size
-    style.addProperty("fo:font-size", pt(cf.fontSize()), text);
+    if (cf.fontSize() > 0) {
+        style.addProperty("fo:font-size", pt(cf.fontSize()), text);
+    }
     // fo:font-style: "italic", "normal" or "oblique
     style.addProperty("fo:font-style", cf.italic() ?"italic" :"normal", text);
     // fo:font-variant: "normal" or "small-caps"
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel

Reply via email to