Hi Regina,

On Thu, 30 Jul 2015 23:24:43 +0200, Regina Henschel <rb.hensc...@t-online.de> 
wrote:
> I want to look why the MathML import has become so bad in LO (tdf#75171).
I am also curious about tdf#75171.
It is SmTextNode::CreateTextFromNode() that contains the code putting strange
"italic" on single-letter identifiers when importing a MathML.
Applying the attached patch will stop the behavior (and thus make mmlimport
test cases fail).
But I have little idea about why LibO 4.1 was OK while 4.2 and later are NG.

Cheers,
-- Takeshi Abe
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 9e66810..1b428e1 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2383,8 +2383,6 @@ void SmTextNode::CreateTextFromNode(OUString &rText)
             //Search for existing functions and remove extraenous keyword
             rText += "func ";
         }
-        else if (bQuoted)
-            rText += "italic ";
 
         if (bQuoted)
             rText += "\"";
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to