Kaydet (Commit) da2c3ed5 authored tarafından Andre Fischer's avatar Andre Fischer

#i119519# Fixed import of closed borders from PPT when an ellipse is involved.

Reported by: liupingtan
Patch by: Jianyuan Li
Review by: Andre Fischer
üst 7d4fbffc
...@@ -1497,14 +1497,16 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm ...@@ -1497,14 +1497,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