r20866 by craig -

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 1 22:02:25 UTC 2016


Author: craig
Date: Mon Feb  1 22:02:25 2016
New Revision: 20866

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20866
Log:
coverity: #1350189 fix unchecked dynamic_cast

Modified:
    trunk/Scribus/scribus/ui/pagepalette.cpp

Modified: trunk/Scribus/scribus/ui/pagepalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20866&path=/trunk/Scribus/scribus/ui/pagepalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/pagepalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/pagepalette.cpp	Mon Feb  1 22:02:25 2016
@@ -213,8 +213,11 @@
 	}
 
 	PagePalette_Pages* pageWidget = dynamic_cast<PagePalette_Pages*>(this->currentWidget());
-	pageWidget->setView(m_view);
-	pageWidget->Rebuild();
+	if (pageWidget)
+	{
+		pageWidget->setView(m_view);
+		pageWidget->Rebuild();
+	}
 }
 
 void PagePalette::changeEvent(QEvent *e)




More information about the scribus-commit mailing list