r22314 by craig -

scribus-commit scribus-commit at lists.scribus.net
Sat Dec 30 22:05:15 UTC 2017


Author: craig
Date: Sat Dec 30 22:05:15 2017
New Revision: 22314

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22314
Log:
Fix Coverity 1426982

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

Modified: trunk/Scribus/scribus/ui/outlinepalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22314&path=/trunk/Scribus/scribus/ui/outlinepalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/outlinepalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/outlinepalette.cpp	Sat Dec 30 22:05:15 2017
@@ -213,7 +213,7 @@
 			else
 			{
 				OutlineTreeItem *itemBe = dynamic_cast<OutlineTreeItem*>(it->parent());
-				if ((itemBe->type == 1) || (itemBe->type == 3) || (itemBe->type == 4))
+				if (itemBe && ((itemBe->type == 1) || (itemBe->type == 3) || (itemBe->type == 4)))
 				{
 					if (item->PageItemObject->isGroupChild())
 						item->DocObject->removeFromGroup(item->PageItemObject);




More information about the scribus-commit mailing list