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
...@@ -1563,6 +1563,8 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm ...@@ -1563,6 +1563,8 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
break; break;
case ANGLEELLIPSE : case ANGLEELLIPSE :
{
if ( nPntCount )
{ {
if(aNewB2DPolygon.count() > 1L) if(aNewB2DPolygon.count() > 1L)
{ {
...@@ -1570,9 +1572,9 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm ...@@ -1570,9 +1572,9 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
basegfx::tools::checkClosed(aNewB2DPolygon); basegfx::tools::checkClosed(aNewB2DPolygon);
aNewB2DPolyPolygon.append(aNewB2DPolygon); aNewB2DPolyPolygon.append(aNewB2DPolygon);
} }
aNewB2DPolygon.clear(); aNewB2DPolygon.clear();
} }
}
case ANGLEELLIPSETO : case ANGLEELLIPSETO :
{ {
for ( sal_uInt16 i = 0; ( i < nPntCount ) && ( ( rSrcPt + 2 ) < nCoordSize ); i++ ) for ( sal_uInt16 i = 0; ( i < nPntCount ) && ( ( rSrcPt + 2 ) < nCoordSize ); i++ )
......
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