r18678 by fschmid - Fixed Bug #11912: File Preview of PUB file crashes Scribus

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 6 16:21:01 UTC 2014


Author: fschmid
Date: Mon Jan  6 16:21:01 2014
New Revision: 18678

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18678
Log:
Fixed Bug #11912: File Preview of PUB file crashes Scribus

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18678&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Jan  6 16:21:01 2014
@@ -2716,6 +2716,8 @@
 void ScribusMainWindow::HaveNewSel(int SelectedType)
 {
 	PageItem *currItem = NULL;
+	if (doc == NULL)
+		return;
 	const uint docSelectionCount=doc->m_Selection->count();
 	if (SelectedType != -1)
 	{




More information about the scribus-commit mailing list