[Libreoffice-commits] core.git: 2 commits - svgio/source

Chr. Rossmanith ChrRossmanith at gmx.de
Thu Oct 30 06:56:13 PDT 2014


 svgio/source/svgreader/svgclippathnode.cxx |    2 +-
 svgio/source/svgreader/svgnode.cxx         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 82dd3e5d53a7521a1190a4068391e7e3eb1e9a79
Author: Chr. Rossmanith <ChrRossmanith at gmx.de>
Date:   Tue Oct 28 22:03:03 2014 +0100

    fixed typo
    
    Change-Id: I2be2caae32a4b33facbf9e933f4537e12e576023

diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx
index 5e3bab1..7d4ac89 100644
--- a/svgio/source/svgreader/svgclippathnode.cxx
+++ b/svgio/source/svgreader/svgclippathnode.cxx
@@ -140,7 +140,7 @@ namespace svgio
 
                 if(aClipTarget.hasElements())
                 {
-                    // extract filled plygons as base for a mask PolyPolygon
+                    // extract filled polygons as base for a mask PolyPolygon
                     drawinglayer::processor2d::ContourExtractor2D aExtractor(aViewInformation2D, true);
 
                     aExtractor.process(aClipTarget);
commit 78a6fc8eda40c08eb3856c815fc402fa5ebbd995
Author: Chr. Rossmanith <ChrRossmanith at gmx.de>
Date:   Tue Oct 28 22:01:19 2014 +0100

    use isEmpty() instead of getLength() where appropriate
    
    Change-Id: I2ac660a6035791e68af9bde9470bbf8c1d008dee

diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index edd287b..723ddbf 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -359,7 +359,7 @@ namespace svgio
 
         Display getDisplayFromContent(const OUString& aContent)
         {
-            if(aContent.getLength())
+            if(!aContent.isEmpty())
             {
                 if(aContent.startsWith("inline"))
                 {
@@ -476,7 +476,7 @@ namespace svgio
                 }
                 case SVGTokenDisplay:
                 {
-                    if(aContent.getLength())
+                    if(!aContent.isEmpty())
                     {
                         setDisplay(getDisplayFromContent(aContent));
                     }


More information about the Libreoffice-commits mailing list