r23243 by jghali - Fix SimpleState::getVoidPtr() incorrectly returning null

scribus-commit scribus-commit at lists.scribus.net
Wed Oct 9 15:20:22 UTC 2019


Author: jghali
Date: Wed Oct  9 15:20:22 2019
New Revision: 23243

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23243
Log:
Fix SimpleState::getVoidPtr() incorrectly returning null

Modified:
    trunk/Scribus/scribus/undostate.cpp

Modified: trunk/Scribus/scribus/undostate.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23243&path=/trunk/Scribus/scribus/undostate.cpp
==============================================================================
--- trunk/Scribus/scribus/undostate.cpp	(original)
+++ trunk/Scribus/scribus/undostate.cpp	Wed Oct  9 15:20:22 2019
@@ -171,7 +171,7 @@
 {
 	void* ret = nullptr;
 	QVariant retVar = variant(key, QVariant::fromValue(def));
-	if (!retVar.canConvert<void*>())
+	if (retVar.canConvert<void*>())
 		ret = retVar.value<void*>();
 	return ret;
 }




More information about the scribus-commit mailing list