[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sc/source

Eike Rathke erack at redhat.com
Thu Jan 22 17:23:48 PST 2015


 sc/source/core/tool/rangenam.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd2434655c94814598daa8105cab0af314a6adf7
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Jan 22 23:36:23 2015 +0100

    Resolves: fdo#88721 correct negated condition in range name validation
    
    Fallout of 72b9dd277bab328c4d9227439e27e8c29b43fa7d String to OUString
    conversion.
    
    (cherry picked from commit 34f8864c9af563cbcd34352b3edefc67ba235ae7)
    
    Conflicts:
    	sc/source/core/tool/rangenam.cxx
    
    Change-Id: I89a90da11790efba9e8ce4c9464dfca50b08c3ce
    Reviewed-on: https://gerrit.libreoffice.org/14120
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 16af01a..c8bc9e3 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -461,7 +461,7 @@ void ScRangeData::MakeValidName( OUString& rName )
         {
             //! Range Parse is partially valid also with invalid sheet name,
             //! Address Parse dito, during compile name would generate a #REF!
-            if ( rName.indexOf( '.' ) == -1 )
+            if ( rName.indexOf( '.' ) != -1 )
                 rName = rName.replaceFirst( ".", "_" );
             else
                 rName = "_" + rName;


More information about the Libreoffice-commits mailing list