From 823eec81c245f56cd2baf7c9fe0b1bf006500561 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 2 Sep 2010 20:33:00 -0300 Subject: Fix bug#320 - "OR'ing Qt alignments doesn't work; adding them does" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Luciano Wolf Renato Araújo --- PySide/QtCore/qvariant_conversions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PySide') diff --git a/PySide/QtCore/qvariant_conversions.h b/PySide/QtCore/qvariant_conversions.h index a471ce64a..1e1c70578 100644 --- a/PySide/QtCore/qvariant_conversions.h +++ b/PySide/QtCore/qvariant_conversions.h @@ -34,7 +34,7 @@ struct Converter } else if (PyFloat_CheckExact(pyObj)) { // QVariant(double) return QVariant(Converter::toCpp(pyObj)); - } else if (PyInt_CheckExact(pyObj)) { + } else if (PyInt_Check(pyObj)) { // QVariant(int) return QVariant(Converter::toCpp(pyObj)); } else if (PyLong_CheckExact(pyObj)) { -- cgit v1.2.3