incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1389473 - /incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx
Date Mon, 24 Sep 2012 16:25:26 GMT
Author: alg
Date: Mon Sep 24 16:25:25 2012
New Revision: 1389473

URL: http://svn.apache.org/viewvc?rev=1389473&view=rev
Log:
#121090# corrceted point reduction on svg:d export to only happen when polygon is closed

Modified:
    incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx

Modified: incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx?rev=1389473&r1=1389472&r2=1389473&view=diff
==============================================================================
--- incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx (original)
+++ incubator/ooo/trunk/main/xmloff/source/draw/xexptran.cxx Mon Sep 24 16:25:25 2012
@@ -1622,7 +1622,9 @@ void SdXMLImExSvgDElement::AddPolygon(
 		// Test for Last point same -> closed, ignore last point. Take
 		// some more circumstances in account when looking at curve segments.
 		drawing::PolygonFlags* pFlagArray = (pFlags) ? pFlags->getArray() : 0L;
-		if((pPointArray->X == (pPointArray + (nCnt - 1))->X) && (pPointArray->Y
== (pPointArray + (nCnt - 1))->Y))
+		
+        // #121090# only reduce double start/end points if polygon *is* closed
+        if(bClosed && (pPointArray->X == (pPointArray + (nCnt - 1))->X) &&
(pPointArray->Y == (pPointArray + (nCnt - 1))->Y))
 		{
 			if(pFlags)
 			{



Mime
View raw message