summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2012-07-09 11:25:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-15 15:18:17 +0100
commitd7c7624024f1da26165869921f340f53026a423d (patch)
treec0e0bf82606671f3440b1d11a5ed158986e876cb /svx
parent387c6712c8c49ec7f4521f2c5ac615c355039352 (diff)
Resolves: #i119519# Fixed import of closed borders from PPT...
when an ellipse is involved. Reported by: liupingtan Patch by: Jianyuan Li Review by: Andre Fischer (cherry picked from commit da2c3ed52ae631dba11821f201a2fce49bf18c86) Change-Id: Iff8195365823b60a70641b9efeb9c9f6c86d5341
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index f74e938c84e6..210f55b6a09f 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1564,14 +1564,16 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
case ANGLEELLIPSE :
{
- if(aNewB2DPolygon.count() > 1L)
+ if ( nPntCount )
{
- // #i76201# Add conversion to closed polygon when first and last points are equal
- basegfx::tools::checkClosed(aNewB2DPolygon);
- aNewB2DPolyPolygon.append(aNewB2DPolygon);
+ if(aNewB2DPolygon.count() > 1L)
+ {
+ // #i76201# Add conversion to closed polygon when first and last points are equal
+ basegfx::tools::checkClosed(aNewB2DPolygon);
+ aNewB2DPolyPolygon.append(aNewB2DPolygon);
+ }
+ aNewB2DPolygon.clear();
}
-
- aNewB2DPolygon.clear();
}
case ANGLEELLIPSETO :
{