summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-05 11:47:19 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-05 12:00:29 +0200
commit507305afa0d826b7e3cb3cc9a4b389f0ba854638 (patch)
tree64a96749140bdee7126f33a60b810fd011e56223
parent6c946727a87374366f66cb39861b0142bd148a54 (diff)
use correct string length for "between", fdo#53010
Change-Id: I282c6a4436984d268b107ffef01022831c05a0fa
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index 7878b827e6cb..636e76af5300 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -313,7 +313,7 @@ void GetConditionData(const rtl::OUString& rValue, ScConditionMode& eMode, rtl::
else if(rValue.indexOf("between") == 0)
{
const sal_Unicode* pStr = rValue.getStr();
- const sal_Unicode* pStart = pStr + 7;
+ const sal_Unicode* pStart = pStr + 8;
const sal_Unicode* pEnd = pStr + rValue.getLength();
rExpr1 = ScXMLConditionHelper::getExpression( pStart, pEnd, ',');
rExpr2 = ScXMLConditionHelper::getExpression( pStart, pEnd, ')');