r18112 by jghali - #11397: Insert Bezier Curve makes application crash
scribus-commit
scribus-commit at lists.scribus.net
Thu Jan 24 20:51:49 UTC 2013
Author: jghali
Date: Thu Jan 24 20:51:49 2013
New Revision: 18112
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18112
Log:
#11397: Insert Bezier Curve makes application crash
Modified:
trunk/Scribus/scribus/canvasmode_drawbezier.cpp
Modified: trunk/Scribus/scribus/canvasmode_drawbezier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18112&path=/trunk/Scribus/scribus/canvasmode_drawbezier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.cpp Thu Jan 24 20:51:49 2013
@@ -81,7 +81,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