diff options
Diffstat (limited to 'sdext/source/pdfimport/tree/drawtreevisiting.cxx')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx index 514401586fb2..e4f1d6631ffe 100644 --- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx +++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx @@ -91,7 +91,7 @@ void DrawXmlEmitter::visit( HyperlinkElement& elem, const std::list< Element* >: void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::const_iterator& ) { - if( ! elem.Text.getLength() ) + if( elem.Text.isEmpty() ) return; OUString strSpace(32); @@ -229,14 +229,14 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem, } if( fRotate != 0.0 ) { - if( aBuf.getLength() > 0 ) + if( !aBuf.isEmpty() ) aBuf.append( sal_Unicode(' ') ); aBuf.appendAscii( "rotate( " ); aBuf.append( -fRotate ); aBuf.appendAscii( " )" ); } - if( aBuf.getLength() > 0 ) + if( !aBuf.isEmpty() ) aBuf.append( sal_Unicode(' ') ); aBuf.appendAscii( "translate( " ); aBuf.append( convertPixelToUnitString( rel_x ) ); |