[Libreoffice-commits] core.git: starmath/source

Marcos Paulo de Souza marcos.souza.org at gmail.com
Mon Jun 17 07:05:52 PDT 2013


 starmath/source/smdetect.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit ef4872f6c6a49878ea2fc6b3a4ea3cd9ad52de33
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date:   Mon Jun 17 10:40:45 2013 -0300

    Fixes fdo#59642
    
    By adding one more test about mathml xml.
    
    Change-Id: I1b49e9faea6742594eaa900a87a03c4dd86c0b5c
    Reviewed-on: https://gerrit.libreoffice.org/4314
    Reviewed-by: Michael Meeks <michael.meeks at suse.com>
    Tested-by: Michael Meeks <michael.meeks at suse.com>

diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index e6a2ef8..39b67b7 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -317,8 +317,9 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
                                 sal_Char aBuffer2[200];
                                 nBytesRead = pStrm->Read( aBuffer2, sizeof(aBuffer2) - 1);
                                 aBuffer2[nBytesRead] = 0;
-                                if (strstr( aBuffer2, "<math>" ) != NULL ||
-                                    strstr( aBuffer2, "<math " ) != NULL)
+                                if (strstr( aBuffer2, "<math>" ) ||
+                                    strstr( aBuffer2, "<math " ) ||
+                                    strstr( aBuffer2, "<math:math " ))
                                 {
                                     static const sal_Char sFltrNm_2[] = MATHML_XML;
                                     static const sal_Char sTypeNm_2[] = "math_MathML_XML_Math";


More information about the Libreoffice-commits mailing list