[Libreoffice-commits] core.git: oox/source

Stephan Bergmann sbergman at redhat.com
Thu Jan 5 15:14:18 UTC 2017


 oox/source/export/shapes.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 951befe8705b6bbd2cceb19161705ec8fb2d2864
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jan 5 16:13:50 2017 +0100

    getLength -> isEmpty
    
    Change-Id: I5a8c2911851d1a798d8c6f3c25b08cb0469f07a0

diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index abb57d4..6214261 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -1059,7 +1059,7 @@ void ShapeExport::WriteGraphicObjectShapePart( const Reference< XShape >& xShape
         // avoid treating all 'IsPresentationObject' objects as having text.
         Reference< XSimpleText > xText( xShape, UNO_QUERY );
 
-        if( xText.is() && xText->getString().getLength() )
+        if( xText.is() && !xText->getString().isEmpty() )
         {
             SAL_INFO("oox.shape", "graphicObject: wrote only text");
 


More information about the Libreoffice-commits mailing list