[PATCH] Fixes fdo#59642
Marcos Souza (via Code Review)
gerrit at gerrit.libreoffice.org
Mon Jun 17 06:43:49 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/4314
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/14/4314/1
Fixes fdo#59642
By making just the one test, the most generic one, and not nesting strstr functions calls.
Change-Id: I1b49e9faea6742594eaa900a87a03c4dd86c0b5c
---
M starmath/source/smdetect.cxx
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index e6a2ef8..7962f7a 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -317,8 +317,7 @@
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" ))
{
static const sal_Char sFltrNm_2[] = MATHML_XML;
static const sal_Char sTypeNm_2[] = "math_MathML_XML_Math";
--
To view, visit https://gerrit.libreoffice.org/4314
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b49e9faea6742594eaa900a87a03c4dd86c0b5c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Marcos Souza <marcos.souza.org at gmail.com>
More information about the LibreOffice
mailing list