r22319 by craig -

scribus-commit scribus-commit at lists.scribus.net
Sat Dec 30 22:40:37 UTC 2017


Author: craig
Date: Sat Dec 30 22:40:37 2017
New Revision: 22319

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22319
Log:
Fix Coverity issues in Outlinepalette

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

Modified: trunk/Scribus/scribus/ui/outlinepalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22319&path=/trunk/Scribus/scribus/ui/outlinepalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/outlinepalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/outlinepalette.cpp	Sat Dec 30 22:40:37 2017
@@ -1017,6 +1017,8 @@
 		return;
 	selectionTriggered = true;
 	OutlineTreeItem *item = dynamic_cast<OutlineTreeItem*>(ite);
+	if (!item)
+		qFatal("OutlineWidget::slotSelect !item");
 	PageItem *pgItem = NULL;
 	switch (item->type)
 	{
@@ -1074,6 +1076,8 @@
 	if (!m_MainWindow || m_MainWindow->scriptIsRunning())
 		return;
 	OutlineTreeItem *item = dynamic_cast<OutlineTreeItem*>(ite);
+	if (!item)
+		qFatal("OutlinePalette::slotDoubleClick !item");
 	PageItem *pgItem = NULL;
 	switch (item->type)
 	{




More information about the scribus-commit mailing list