r18338 by jghali - #11611: crash when pasting frame

scribus-commit scribus-commit at lists.scribus.net
Mon Jun 24 22:13:06 UTC 2013


Author: jghali
Date: Mon Jun 24 22:13:06 2013
New Revision: 18338

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18338
Log:
#11611: crash when pasting frame

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18338&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Mon Jun 24 22:13:06 2013
@@ -1195,7 +1195,7 @@
 {
 	if (this->nextInChain() )
 		return false;
-	if (nxt->prevInChain() )
+	if (!nxt || nxt->prevInChain() )
 		return false;
 	for (PageItem* ff=nxt; ff; ff=ff->nextInChain())
 	{




More information about the scribus-commit mailing list