diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-09 02:16:06 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-09 02:16:06 +0100 |
commit | 59dcb5918dbcb93173afcd5bc4f3b01fa7bef1ee (patch) | |
tree | b76727140abbe3d785ea6b0fcb9deda63f971724 /sc | |
parent | remove one more reference to the anonymous db string (diff) | |
download | core-59dcb5918dbcb93173afcd5bc4f3b01fa7bef1ee.tar.gz core-59dcb5918dbcb93173afcd5bc4f3b01fa7bef1ee.zip |
prevent creating new db ranges with the internal anonymous db name
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 2 |
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; |