Kaydet (Commit) d7c76240 authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Caolán McNamara

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 da2c3ed5)

Change-Id: Iff8195365823b60a70641b9efeb9c9f6c86d5341
üst 387c6712
...@@ -1564,14 +1564,16 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm ...@@ -1564,14 +1564,16 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
case ANGLEELLIPSE : case ANGLEELLIPSE :
{ {
if(aNewB2DPolygon.count() > 1L) if ( nPntCount )
{ {
// #i76201# Add conversion to closed polygon when first and last points are equal if(aNewB2DPolygon.count() > 1L)
basegfx::tools::checkClosed(aNewB2DPolygon); {
aNewB2DPolyPolygon.append(aNewB2DPolygon); // #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 : case ANGLEELLIPSETO :
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment