[ooo-build-commit] .: patches/dev300
Thorsten Behrens
thorsten at kemper.freedesktop.org
Sat Jul 24 10:40:40 PDT 2010
patches/dev300/ppt-customshape-shading-fix.diff | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
New commits:
commit fdf0ac29a12dff5a70aab2531139da3280209b96
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Sat Jul 24 19:39:32 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 511acde..49e0f19 100644
--- a/patches/dev300/ppt-customshape-shading-fix.diff
+++ b/patches/dev300/ppt-customshape-shading-fix.diff
@@ -1,7 +1,3 @@
----
- svx/source/customshapes/EnhancedCustomShape2d.cxx | 16 ++++++++++++++++
- 1 files changed, 16 insertions(+), 0 deletions(-)
-
diff --git svx/source/customshapes/EnhancedCustomShape2d.cxx svx/source/customshapes/EnhancedCustomShape2d.cxx
index 12123ec..3ad578a 100644
--- svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -29,6 +25,21 @@ index 12123ec..3ad578a 100644
// #i37011#
bool bForceCreateTwoObjects(false);
---
-1.7.0.1
+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,11 +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