summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2000-12-12 16:11:33 +0000
committerCaolán McNamara <cmc@openoffice.org>2000-12-12 16:11:33 +0000
commita4553067fd09c3a33806f8da16f6b691080102ae (patch)
treef002495d9c9f4e4693d123ac071d4aa482921027 /starmath
parent9b2d58ca944f3216ea669aba39a8bf6e8dfd1eb8 (diff)
#81539# Sanity check for fully parsed MathType is futile
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathtype.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 44cf98978ff8..0f769502b8bb 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: mathtype.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: cmc $ $Date: 2000-12-12 12:00:49 $
+ * last change: $Author: cmc $ $Date: 2000-12-12 17:11:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -511,10 +511,17 @@ int MathType::Parse(SvStorage *pStor)
//starmaths internals.
APPEND(rRet,"{}");
+#ifdef DEBUG
+# ifdef CAOLAN
//sanity check
+
+ //sigh, theres no point! MathType (in some bizarre subvarient) pads
+ //the end of the formula with ENDs (0)'s
ULONG nEnd = pS->Tell();
- if (nEnd != pS->Seek(STREAM_SEEK_TO_END))
- return 0;
+ DBG_ASSERT(nEnd == pS->Seek(STREAM_SEEK_TO_END),
+ "Possibly unfully parsed formula")
+# endif
+#endif
return nRet;
}