diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-06-17 10:40:45 -0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-06-17 16:59:54 +0100 |
commit | 923b05ac37355886e7a20fdcb1ad9dcb198f7570 (patch) | |
tree | 5fdce27526a283c934bf4189d6ff8b5ad06244a3 | |
parent | 965b1bc9f56b32d8a8630bad76f2033a5ee9dfd3 (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.cxx | 5 |
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"; |