[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Wed Apr 19 10:46:49 UTC 2017


 sc/source/ui/view/viewfun4.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c15f497b9a3463c7eeca1e8cc2c6f46ca293b9af
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Apr 19 12:45:59 2017 +0200

    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

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 );


More information about the Libreoffice-commits mailing list