summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-05 11:47:19 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-08-05 12:41:20 +0200
commit38d7b11915c9c4e5fcebcb7eb3ae1b2846b26267 (patch)
treef84d6848e42b21780d977d21ccf4204c01da7e6d
parenteb42588dcdfe27df5812f9f41b56022e0d5b4cf4 (diff)
use correct string length for "between", fdo#53010
Change-Id: I282c6a4436984d268b107ffef01022831c05a0fa Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
-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 ed9bc497c48a..a8a47f141b26 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, ')');