summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-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";