[ooo-build-commit] .: Branch 'ooo-build-3-2-1' - patches/dev300

Thorsten Behrens thorsten at kemper.freedesktop.org
Sat Jul 24 10:34:30 PDT 2010


 patches/dev300/ppt-customshape-shading-fix.diff |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit bb125188631b27ed23f45c8f071a3f815dbe1354
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Sat Jul 24 19:26:57 2010 +0200

    More fixing for gradient improvement
    
    * patches/dev300/ppt-customshape-shading-fix.diff: fixed prob with
      line arrows - the extra-added single point polygons lead to extra
      arrows randomly around the custom shape. i#105654

diff --git a/patches/dev300/ppt-customshape-shading-fix.diff b/patches/dev300/ppt-customshape-shading-fix.diff
index 3fa4afb..3e5ef31 100644
--- a/patches/dev300/ppt-customshape-shading-fix.diff
+++ b/patches/dev300/ppt-customshape-shading-fix.diff
@@ -36,3 +36,20 @@ index ed0b16b..15f69b3 100644
          // #i37011#
          bool bForceCreateTwoObjects(false);
  
+diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
+index ad9a235..b501515 100644
+--- drawinglayer/source/primitive2d/polygonprimitive2d.cxx
++++ drawinglayer/source/primitive2d/polygonprimitive2d.cxx
+@@ -509,10 +509,11 @@ namespace drawinglayer
+         {
+             // copy local polygon, it may be changed
+             basegfx::B2DPolygon aLocalPolygon(getB2DPolygon());
++            aLocalPolygon.removeDoublePoints();
+             basegfx::B2DPolyPolygon aArrowA;
+             basegfx::B2DPolyPolygon aArrowB;
+ 
+-            if(!aLocalPolygon.isClosed())
++            if(!aLocalPolygon.isClosed() && aLocalPolygon.count() > 1)
+             {
+                 // apply arrows
+                 const double fPolyLength(basegfx::tools::getLength(aLocalPolygon));


More information about the ooo-build-commit mailing list