summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/moduldlg.cxx
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2001-07-04 12:37:14 +0000
committerThomas Benisch <tbe@openoffice.org>2001-07-04 12:37:14 +0000
commitc076d8fd4d0f9921f054901601bd69509f9dab66 (patch)
treea42c68fc942de2640a89d0875f46204491d302a9 /basctl/source/basicide/moduldlg.cxx
parentb1adeffca1c6eceb179098b275201ef9dc89796d (diff)
#88565# change module management from sbx to library container
Diffstat (limited to 'basctl/source/basicide/moduldlg.cxx')
-rw-r--r--basctl/source/basicide/moduldlg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index a11d79048693..df4a9532d359 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: moduldlg.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: tbe $ $Date: 2001-06-28 15:26:41 $
+ * last change: $Author: tbe $ $Date: 2001-07-04 13:37:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -228,13 +228,12 @@ BOOL __EXPORT ExtBasicTreeListBox::NotifyAcceptDrop( SvLBoxEntry* pEntry )
// a module/dialog is copied/moved
SbxItem aSbxItem = GetSbxItem( pSelected );
- pVar = (SbxVariable*)aSbxItem.GetSbx();
// get source module/dialog name
String aSourceName = aSbxItem.GetName();
// module/dialog already existing?
- if ( ( pVar && pVar->ISA( SbModule ) && pDestBasic->FindModule( pVar->GetName() ) ) ||
+ if ( ( aSbxItem.GetType() == BASICIDE_TYPE_MODULE && BasicIDE::HasModule( pDestShell, aDestLibName, aSourceName ) ) ||
( aSbxItem.GetType() == BASICIDE_TYPE_DIALOG && BasicIDE::HasDialog( pDestShell, aDestLibName, aSourceName ) ) )
{
bValid = FALSE;