summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-01-22 23:36:23 +0100
committerAndras Timar <andras.timar@collabora.com>2015-01-24 16:54:47 +0100
commit36e1d44e64a2d2e973c3da5abee2f9c8b314a324 (patch)
treea3efaf8a178b56fe7caf87492eafac44ab149e9b /sc
parent1138b8702d693093a77d1885b05f47bee538717b (diff)
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/14121 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/rangenam.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 3fb839edc710..0c08f316d49e 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -460,7 +460,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;