diff options
Diffstat (limited to 'toolkit/source/helper/formpdfexport.cxx')
-rw-r--r-- | toolkit/source/helper/formpdfexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx index cedc4825c7e4..957c0186620b 100644 --- a/toolkit/source/helper/formpdfexport.cxx +++ b/toolkit/source/helper/formpdfexport.cxx @@ -495,7 +495,7 @@ namespace toolkitform { ::rtl::OUString sURL; OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_TARGET_URL ) >>= sURL ); - const bool bDocumentLocalTarget = ( sURL.getLength() > 0 ) && ( sURL.getStr()[0] == '#' ); + const bool bDocumentLocalTarget = !sURL.isEmpty() && ( sURL.getStr()[0] == '#' ); if ( bDocumentLocalTarget ) { const ::rtl::OUString sDestinationName( sURL.copy(1) ); |