summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-11-02 15:37:45 +0000
committerMathias Bauer <mba@openoffice.org>2001-11-02 15:37:45 +0000
commitd7fafd456cbf3598bdeaaf25cbe2b9742f367c8b (patch)
tree35898353c6e257f9fa9e3a00d834fcc58bfb0663
parent61a3180f84f6ded77b5255780f9b5fc60f6a49e2 (diff)
#93760#: no empty itemsets in Requests
-rw-r--r--sfx2/source/control/unoctitm.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index b830c9723795..6eec0e37131e 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoctitm.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: mba $ $Date: 2001-10-31 16:05:42 $
+ * last change: $Author: mba $ $Date: 2001-11-02 16:37:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -516,8 +516,16 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const ::com::sun::star::util
if ( pDispatcher->GetShellAndSlot_Impl( GetId(), &pShell, &pSlot, sal_False,
SFX_CALLMODE_MODAL==(nCall&SFX_CALLMODE_MODAL) ) )
{
- SfxRequest aReq( GetId(), nCall, aSet );
- pDispatcher->GetBindings()->Execute_Impl( aReq, pSlot, pShell );
+ if ( aSet.Count() )
+ {
+ SfxRequest aReq( GetId(), nCall, aSet );
+ pDispatcher->GetBindings()->Execute_Impl( aReq, pSlot, pShell );
+ }
+ else
+ {
+ SfxRequest aReq( GetId(), nCall, SFX_APP()->GetPool() );
+ pDispatcher->GetBindings()->Execute_Impl( aReq, pSlot, pShell );
+ }
}
}
else