npower13_objectmodules: #i111419#

This commit is contained in:
npower Developer 2010-05-06 13:02:31 +01:00
parent 442f871611
commit 6ddef091ef
2 changed files with 2 additions and 3 deletions

View file

@ -109,7 +109,6 @@ void __EXPORT BasicIDEShell::ExecuteCurrent( SfxRequest& rReq )
{
if ( aDocument.removeModule( aLibName, aName ) )
{
RemoveWindow( pCurWin, TRUE );
BasicIDE::MarkDocumentModified( aDocument );
}
}

View file

@ -107,7 +107,7 @@ public:
try
{
uno::Reference< container::XContainer > xContainer( rScriptDocument.getLibrary( E_SCRIPTS, aLibName, FALSE ), uno::UNO_QUERY );
if ( rScriptDocument.isDocument() && xContainer.is() )
if ( xContainer.is() )
{
uno::Reference< container::XContainerListener > xContainerListener( this );
xContainer->addContainerListener( xContainerListener );
@ -120,7 +120,7 @@ public:
try
{
uno::Reference< container::XContainer > xContainer( rScriptDocument.getLibrary( E_SCRIPTS, aLibName, FALSE ), uno::UNO_QUERY );
if ( rScriptDocument.isDocument() && xContainer.is() )
if ( xContainer.is() )
{
uno::Reference< container::XContainerListener > xContainerListener( this );
xContainer->removeContainerListener( xContainerListener );