diff options
Diffstat (limited to 'sw/source/ui/vba/vbaparagraphformat.cxx')
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index 196240e49ab9..e47ddcc153f1 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -185,7 +185,7 @@ sal_Int32 SAL_CALL SwVbaParagraphFormat::getOutlineLevel() throw (uno::RuntimeEx OUString aHeading; const OUString HEADING = OUString("Heading"); mxParaProps->getPropertyValue("ParaStyleName") >>= aHeading; - if( aHeading.indexOf( HEADING ) == 0 ) + if( aHeading.startsWith( HEADING ) ) { // get the sub string after "Heading" nLevel = aHeading.copy( HEADING.getLength() ).toInt32(); |