r19452 by fschmid - Fixed Bug #12621: It is possible to create Bezier Curves with only 1 node

scribus-commit scribus-commit at lists.scribus.net
Thu Aug 28 10:42:56 UTC 2014


Author: fschmid
Date: Thu Aug 28 10:42:56 2014
New Revision: 19452

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19452
Log:
Fixed Bug #12621: It is possible to create Bezier Curves with only 1 node

Modified:
    trunk/Scribus/scribus/canvasmode_nodeedit.cpp

Modified: trunk/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19452&path=/trunk/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_nodeedit.cpp Thu Aug 28 10:42:56 2014
@@ -826,6 +826,11 @@
 					cli.putPoints(cli.size(), Clip.size() - EndInd, Clip, EndInd);
 				}
 			}
+			else if (m_doc->nodeEdit.ClRe == static_cast<int>(EndInd - 2))
+			{
+				Clip.remove(m_doc->nodeEdit.ClRe - 2, 4);
+				cli = Clip.copy();
+			}
 			else
 			{
 				if (m_doc->nodeEdit.ClRe != 0)




More information about the scribus-commit mailing list