diff options
Diffstat (limited to 'sc/source/ui/vba/vbawindow.cxx')
-rw-r--r-- | sc/source/ui/vba/vbawindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index 207368e20181..1a0ec714b2c4 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -331,7 +331,7 @@ ScVbaWindow::getCaption() throw (uno::RuntimeException) { static OUString sDot("."); // starts with title - if ( sName.indexOf( sTitle ) == 0 ) + if ( sName.startsWith( sTitle ) ) // extention starts immediately after if ( sName.match( sDot, sTitle.getLength() ) ) sTitle = sName; |