r18111 by jghali - #11397: Insert Bezier Curve makes application crash

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 24 20:51:13 UTC 2013


Author: jghali
Date: Thu Jan 24 20:51:13 2013
New Revision: 18111

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18111
Log:
#11397: Insert Bezier Curve makes application crash

Modified:
    branches/Version14x/Scribus/scribus/canvasmode_drawbezier.cpp

Modified: branches/Version14x/Scribus/scribus/canvasmode_drawbezier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18111&path=/branches/Version14x/Scribus/scribus/canvasmode_drawbezier.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasmode_drawbezier.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasmode_drawbezier.cpp Thu Jan 24 20:51:13 2013
@@ -84,7 +84,8 @@
 
 void BezierMode::finalizeItem(PageItem* currItem)
 {
-	currItem->PoLine.resize(currItem->PoLine.size()-2);
+	if (currItem->PoLine.size() >= 2)
+		currItem->PoLine.resize(currItem->PoLine.size()-2);
 	if (currItem->PoLine.size() < 4)
 	{
 //		emit DelObj(m_doc->currentPage->pageNr(), currItem->ItemNr);




More information about the scribus-commit mailing list