r22313 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Sat Dec 30 22:02:16 UTC 2017
Author: craig
Date: Sat Dec 30 22:02:16 2017
New Revision: 22313
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22313
Log:
Fix Coverity 1427007
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22313&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sat Dec 30 22:02:16 2017
@@ -1609,6 +1609,8 @@
if ( e->type() == QEvent::KeyPress )
{
QKeyEvent *k = dynamic_cast<QKeyEvent *>(e);
+ if (!k)
+ return false;
int keyMod=0;
if (k->modifiers() & Qt::ShiftModifier)
keyMod |= Qt::SHIFT;
More information about the scribus-commit
mailing list