summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-09 02:16:06 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-09 02:16:06 +0100
commit59dcb5918dbcb93173afcd5bc4f3b01fa7bef1ee (patch)
treeb76727140abbe3d785ea6b0fcb9deda63f971724
parent66fbd3a48ac5608eeb45629b9d285790cfcefff6 (diff)
prevent creating new db ranges with the internal anonymous db name
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index 0f32a4d09f6d..493b2db9b94a 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -469,7 +469,7 @@ IMPL_LINK_NOARG(ScDbNameDlg, AddBtnHdl)
if ( aNewName.Len() > 0 && aNewArea.Len() > 0 )
{
- if ( ScRangeData::IsNameValid( aNewName, pDoc ) )
+ if ( ScRangeData::IsNameValid( aNewName, pDoc ) && !aNewName.EqualsAscii(STR_DB_LOCAL_NONAME) )
{
// weil jetzt editiert werden kann, muss erst geparst werden
ScRange aTmpRange;