diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-01-03 11:41:51 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-01-03 11:41:51 +0000 |
commit | 13489ab0e283f31e189c85bfa47035691d6f247c (patch) | |
tree | bf870c447e7c5e20878a434b1bd02b722a0dd40c /basctl/source | |
parent | 91745d4bd9aa1acdd70208db5ea9ca7a238188f8 (diff) |
INTEGRATION: CWS tbe26 (1.36.28); FILE MERGED
2005/12/19 11:07:34 tbe 1.36.28.1: #122331# Stacktrace ID: 177533 BasicIDE::GetBindings( void )
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index b6ac38c9e64e..134b8fe4c73c 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -4,9 +4,9 @@ * * $RCSfile: baside2.cxx,v $ * - * $Revision: 1.36 $ + * $Revision: 1.37 $ * - * last change: $Author: rt $ $Date: 2005-09-07 19:55:46 $ + * last change: $Author: kz $ $Date: 2006-01-03 12:41:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1093,7 +1093,9 @@ void __EXPORT ModulWindow::ExecuteCommand( SfxRequest& rReq ) if ( !IsReadOnly() ) { GetEditView()->Cut(); - BasicIDE::GetBindings().Invalidate( SID_DOC_MODIFIED ); + SfxBindings* pBindings = BasicIDE::GetBindingsPtr(); + if ( pBindings ) + pBindings->Invalidate( SID_DOC_MODIFIED ); } } break; @@ -1107,7 +1109,9 @@ void __EXPORT ModulWindow::ExecuteCommand( SfxRequest& rReq ) if ( !IsReadOnly() ) { GetEditView()->Paste(); - BasicIDE::GetBindings().Invalidate( SID_DOC_MODIFIED ); + SfxBindings* pBindings = BasicIDE::GetBindingsPtr(); + if ( pBindings ) + pBindings->Invalidate( SID_DOC_MODIFIED ); } } break; @@ -1210,7 +1214,9 @@ BOOL ModulWindow::RenameModule( const String& rNewName ) try { BasicIDE::RenameModule( GetShell(), GetLibName(), GetName(), rNewName ); - BasicIDE::GetBindings().Invalidate( SID_DOC_MODIFIED ); + SfxBindings* pBindings = BasicIDE::GetBindingsPtr(); + if ( pBindings ) + pBindings->Invalidate( SID_DOC_MODIFIED ); } catch ( container::ElementExistException& ) { |