summaryrefslogtreecommitdiff
path: root/sfx2/source/control/unoctitm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/unoctitm.cxx')
-rw-r--r--sfx2/source/control/unoctitm.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 3c00b5269f86..fbbebfeb152a 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -702,7 +702,14 @@ void SAL_CALL SfxDispatchController_Impl::dispatch( const css::util::URL& aURL,
{
// execute with arguments - call directly
pItem = pDispatcher->Execute(GetId(), nCall, xSet.get(), &aInternalSet, nModifier);
- bSuccess = (pItem != nullptr);
+ if ( pItem != nullptr )
+ {
+ if ( dynamic_cast< const SfxBoolItem *>( pItem ) != nullptr )
+ bSuccess = dynamic_cast< const SfxBoolItem *>( pItem )->GetValue();
+ else if ( dynamic_cast< const SfxVoidItem *>( pItem ) == nullptr )
+ bSuccess = true; // all other types are true
+ }
+ // else bSuccess = false look to line 664 it is false
}
else
{