r20867 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 1 22:03:27 UTC 2016
Author: craig
Date: Mon Feb 1 22:03:27 2016
New Revision: 20867
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20867
Log:
coverity: #1350188 fix unchecked dynamic_cast
Modified:
trunk/Scribus/scribus/undostack.cpp
Modified: trunk/Scribus/scribus/undostack.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20867&path=/trunk/Scribus/scribus/undostack.cpp
==============================================================================
--- trunk/Scribus/scribus/undostack.cpp (original)
+++ trunk/Scribus/scribus/undostack.cpp Mon Feb 1 22:03:27 2016
@@ -66,7 +66,7 @@
else if((*it)->isTransaction())
{
TransactionState *ts = dynamic_cast<TransactionState*>(*it);
- if(ts->containsOnly(objectId))
+ if(ts && ts->containsOnly(objectId))
{
tmpUndoState = *it;
m_undoActions_.erase(it);
More information about the scribus-commit
mailing list