r20081 by craig - Be sure the canvasmode exists

scribus-commit scribus-commit at lists.scribus.net
Wed May 13 23:44:00 UTC 2015


Author: craig
Date: Wed May 13 23:44:00 2015
New Revision: 20081

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20081
Log:
Be sure the canvasmode exists

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20081&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Wed May 13 23:44:00 2015
@@ -3950,7 +3950,7 @@
 
 void ScribusView::keyPressEvent(QKeyEvent *k)
 {
-	if (m_canvasMode->handleKeyEvents())
+	if (m_canvasMode && m_canvasMode->handleKeyEvents())
 		m_canvasMode->keyPressEvent(k);
 	else
 		m_ScMW->keyPressEvent(k);




More information about the scribus-commit mailing list