https://bugs.freedesktop.org/show_bug.cgi?id=57886

--- Comment #6 from Michael Meeks <[email protected]> ---
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -90,11 +90,22 @@ OUString SmOoxmlImport::handleStream()
 OUString SmOoxmlImport::readOMathArg()
 {
     OUString ret;
+    // 40120C69 -> c69 == 3177
+    // const sal_Int32 XML_mPr = 3177;
+
+    if( !stream.atEnd() && stream.currentToken() == CLOSING(
stream.currentToken()))
+    {
+        fprintf (stderr, "BUG BUG BUG - WBUG !\n");
+        if (getenv ("WORKAROUND"))
+            stream.handleUnexpectedTag();
+    }
+
     while( !stream.atEnd() && stream.currentToken() != CLOSING(
stream.currentToken()))
     {
         if( !ret.isEmpty())

With this - we at least continue to make progress through the document when we
hit an unexpected CLOSING that is not a close oMath from handleStream :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to