summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 08:58:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 08:58:20 +0000
commit96eafd9d1c39e709185b41c47288771be3ca7d7e (patch)
treecb18a344c48a23cc13a09bf355ebb5fdcd38fad9 /basctl
parentc653bcdef2f306ee8b75b9a07f9654831bbe45ba (diff)
INTEGRATION: CWS ab34 (1.33.20); FILE MERGED
2007/06/27 12:37:22 ab 1.33.20.1: #i74440# Check modules and dialogs for empty names
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basobj2.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 03e4abf6c4e0..098f3e8ccb20 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: basobj2.cxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: obo $ $Date: 2007-03-15 15:54:30 $
+ * last change: $Author: hr $ $Date: 2007-08-03 09:58:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -237,6 +237,14 @@ bool BasicIDE::RenameModule( Window* pErrorParent, const ScriptDocument& rDocume
return false;
}
+ // #i74440
+ if ( rNewName.Len() == 0 )
+ {
+ ErrorBox aError( pErrorParent, WB_OK | WB_DEF_OK, String( IDEResId( RID_STR_BADSBXNAME ) ) );
+ aError.Execute();
+ return false;
+ }
+
if ( !rDocument.renameModule( rLibName, rOldName, rNewName ) )
return false;