summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-06-17 10:40:45 -0300
committerMichael Meeks <michael.meeks@suse.com>2013-06-17 14:05:32 +0000
commitef4872f6c6a49878ea2fc6b3a4ea3cd9ad52de33 (patch)
treee9fb1ee610c8b07404af70b6e66360d568903f98
parente014694623b1516aa47f2012cc038e4c64ed7bea (diff)
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@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
-rw-r--r--starmath/source/smdetect.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index e6a2ef8ccb04..39b67b7da5f0 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";