r19370 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:50 UTC 2014
Author: jghali
Date: Fri Jul 25 22:37:50 2014
New Revision: 19370
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19370
Log:
#12552: Deleting a node of a Shape with 3 nodes crashes Scribus
Modified:
trunk/Scribus/scribus/canvasmode_nodeedit.cpp
Modified: trunk/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19370&path=/trunk/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_nodeedit.cpp Fri Jul 25 22:37:50 2014
@@ -154,12 +154,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)
+ {
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