r19430 by jghali - avoid erroneous deletion of shape when editing nodes

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 17 06:52:33 UTC 2014


Author: jghali
Date: Sun Aug 17 06:52:33 2014
New Revision: 19430

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19430
Log:
avoid erroneous deletion of shape when editing nodes

Modified:
    trunk/Scribus/scribus/canvasmode_nodeedit.cpp

Modified: trunk/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19430&path=/trunk/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_nodeedit.cpp Sun Aug 17 06:52:33 2014
@@ -801,7 +801,10 @@
 				return;
 			}
 		}
-		if ((currItem->Segments.count() != 0) && ((EndInd - StartInd) <= 12))
+
+		int numPoints = (StartInd != 0) ? (StartInd-4) : 0;
+		numPoints += (Clip.size() - EndInd);
+		if ((currItem->Segments.count() > 0) && ((EndInd - StartInd) <= 12) && (numPoints > 0))
 		{
 			if (StartInd != 0)
 				cli.putPoints(0, StartInd-4, Clip);




More information about the scribus-commit mailing list