r19213 by jghali - #12365: Undo/Redo crashes Scribus editing Polyline

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 12 11:48:10 UTC 2014


Author: jghali
Date: Thu Jun 12 11:48:10 2014
New Revision: 19213

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19213
Log:
#12365: Undo/Redo crashes Scribus editing Polyline

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19213&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Thu Jun 12 11:48:10 2014
@@ -7512,6 +7512,8 @@
 			m_Doc->AdjustItemSize(this);
 			m_Doc->MoveItem(newX - xPos(), newY - yPos(), this, false);
 		}
+		if (oldClip.count() != newClip.count())
+			m_Doc->nodeEdit.deselect();
 		m_Doc->regionsChanged()->update(QRectF());
 	}
 }




More information about the scribus-commit mailing list