summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbacommandbarhelper.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
index 57a35c053c9c..a95859c781ae 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
@@ -206,7 +206,7 @@ OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css:
for( sal_Int32 i = 0; i < allNames.getLength(); i++ )
{
sResourceUrl = allNames[i];
- if(sResourceUrl.indexOf( ITEM_TOOLBAR_URL ) == 0 )
+ if(sResourceUrl.startsWith( ITEM_TOOLBAR_URL ) )
{
if( hasToolbar( sResourceUrl, sName ) )
return sResourceUrl;