r21701 by jghali - #14538: Crash when clicking on canvas after linking two text frames

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 5 23:20:48 UTC 2017


Author: jghali
Date: Thu Jan  5 23:20:48 2017
New Revision: 21701

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21701
Log:
#14538: Crash when clicking on canvas after linking two text frames

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21701&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Thu Jan  5 23:20:48 2017
@@ -3528,6 +3528,7 @@
 		m_canvasMode->mousePressEvent(m);
 		//if user don't click any frame he want to draw new frame and link it
 		bool requestDrawMode = (Doc->ElemToLink == NULL);
+		requestDrawMode &= (firstFrame && !firstFrame->nextInChain());
 		if (linkmode && requestDrawMode)
 		{
 			//switch to drawing new text frame




More information about the scribus-commit mailing list