summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-04-19 12:45:59 +0200
committerEike Rathke <erack@redhat.com>2017-04-19 12:46:26 +0200
commitc15f497b9a3463c7eeca1e8cc2c6f46ca293b9af (patch)
tree458f4b8801075e32c3c9190c87d693e24049d7d7
parent13414a637f30375a62c02f54c054e358f7565d05 (diff)
keep the leading '=' equal character, tdf#102525 follow-up
So to feed it to the compiler again in case it's a "==" force-always formula, which theoretically would also be valid in matrix mode. Change-Id: Ie694e12a3bc4581469b7ad9cc06a23333a664d6f
-rw-r--r--sc/source/ui/view/viewfun4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index e947747539d7..f0c4b19d2772 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -257,9 +257,9 @@ void ScViewFunc::DoRefConversion()
sal_Int32 nLen = aOld.getLength();
if (eMatrixMode == ScMatrixMode::Formula)
{
- assert(nLen >= 3 && aOld[0] == '{' && aOld[1] == '=' && aOld[aOld.getLength()-1] == '}');
- nLen -= 3;
- aOld = aOld.copy( 2, nLen);
+ assert(nLen >= 2 && aOld[0] == '{' && aOld[nLen-1] == '}');
+ nLen -= 2;
+ aOld = aOld.copy( 1, nLen);
}
ScRefFinder aFinder( aOld, aIter.GetPos(), pDoc, pDoc->GetAddressConvention() );
aFinder.ToggleRel( 0, nLen );