incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1359107 - /incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx
Date Mon, 09 Jul 2012 12:25:28 GMT
Author: af
Date: Mon Jul  9 12:25:28 2012
New Revision: 1359107

URL: http://svn.apache.org/viewvc?rev=1359107&view=rev
Log:
#i119519# Fixed import of closed borders from PPT when an ellipse is involved.

          Reported by: liupingtan
          Patch by: Jianyuan Li
          Review by: Andre Fischer

Modified:
    incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx

Modified: incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx?rev=1359107&r1=1359106&r2=1359107&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx (original)
+++ incubator/ooo/trunk/main/svx/source/customshapes/EnhancedCustomShape2d.cxx Mon Jul  9
12:25:28 2012
@@ -1497,14 +1497,16 @@ void EnhancedCustomShape2d::CreateSubPat
 
 				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 :
 				{



Mime
View raw message