summaryrefslogtreecommitdiff
path: root/framework/source/uifactory/addonstoolbarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/addonstoolbarfactory.cxx')
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 4f97fa4ebcb8..a9b895589202 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -181,7 +181,7 @@ Reference< XUIElement > SAL_CALL AddonsToolBarFactory::createUIElement(
// Identify frame and determine module identifier to look for context based buttons
Reference< css::ui::XUIElement > xToolBar;
if ( xFrame.is() &&
- ( aConfigData.getLength()> 0 ) &&
+ aConfigData.hasElements() &&
hasButtonsInContext( aConfigData, xFrame ))
{
PropertyValue aPropValue;