r19369 by jghali - #12552: Deleting a node of a Shape with 3 nodes crashes Scribus

scribus-commit scribus-commit at lists.scribus.net
Fri Jul 25 22:37:06 UTC 2014


Author: jghali
Date: Fri Jul 25 22:37:06 2014
New Revision: 19369

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19369
Log:
#12552: Deleting a node of a Shape with 3 nodes crashes Scribus

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

Modified: branches/Version14x/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19369&path=/branches/Version14x/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasmode_nodeedit.cpp Fri Jul 25 22:37:06 2014
@@ -138,12 +138,17 @@
 			cli.point((*itm), &x, &y);
 			p->drawPoint(QPointF(x, y));
 		}
-		emit m_view->HavePoint(true, m_doc->nodeEdit.MoveSym);
+	}
+	
+	bool havePoint = (m_doc->nodeEdit.ClRe != -1);
+	emit m_view->HavePoint(havePoint, m_doc->nodeEdit.MoveSym);
+
+	if (m_doc->nodeEdit.ClRe != -1) // May change when calling HavePoint()
+	{
 		cli.point(m_doc->nodeEdit.ClRe, &x, &y);
 		emit m_view->ClipPo(x, y);
 	}
-	else
-		emit m_view->HavePoint(false, m_doc->nodeEdit.MoveSym);
+
 	p->restore();
 }
 




More information about the scribus-commit mailing list