summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLConverter.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-26 17:07:02 +0000
commit555d702903fb0857122024e1ab78a72d122d3f16 (patch)
tree6c749e09d7b761f4ce353bedcc31627a38529196 /sc/source/filter/xml/XMLConverter.cxx
parentff721adbe05f7a6659d9dffcf46c671f8a644da7 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'sc/source/filter/xml/XMLConverter.cxx')
-rw-r--r--sc/source/filter/xml/XMLConverter.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLConverter.cxx b/sc/source/filter/xml/XMLConverter.cxx
index 90665dc11f4a..79f4c9f02cf2 100644
--- a/sc/source/filter/xml/XMLConverter.cxx
+++ b/sc/source/filter/xml/XMLConverter.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLConverter.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: sab $ $Date: 2001-11-15 11:36:12 $
+ * last change: $Author: hr $ $Date: 2003-03-26 18:05:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -725,7 +725,8 @@ void ScXMLConverter::ParseFormula(OUString& sFormula, const sal_Bool bIsFormula)
sal_Unicode chPrevious('=');
for (sal_Int32 i = 0; i < sFormula.getLength(); i++)
{
- if (sFormula[i] == '\'' && !bInDoubleQuotationMarks)
+ if (sFormula[i] == '\'' && !bInDoubleQuotationMarks &&
+ chPrevious != '\\')
bInQuotationMarks = !bInQuotationMarks;
else if (sFormula[i] == '"' && !bInQuotationMarks)
bInDoubleQuotationMarks = !bInDoubleQuotationMarks;
@@ -741,6 +742,8 @@ void ScXMLConverter::ParseFormula(OUString& sFormula, const sal_Bool bIsFormula)
sBuffer.append(sFormula[i]);
chPrevious = sFormula[i];
}
+
+ DBG_ASSERT(nCountBraces == 0, "there are some braces still open");
sFormula = sBuffer.makeStringAndClear();
}