Fix elasticnodes segfault.

This commit is contained in:
Luciano Wolf 2010-07-23 11:10:57 -03:00
commit e42133e8e7

View file

@ -57,6 +57,7 @@ struct Converter<QVariant>
QString stypeName(typeName); QString stypeName(typeName);
stypeName += '*'; stypeName += '*';
typeCode = QMetaType::type(stypeName.toAscii()); typeCode = QMetaType::type(stypeName.toAscii());
return QVariant(typeCode, reinterpret_cast<SbkBaseWrapper*>(pyObj)->cptr);
} }
if (typeCode) if (typeCode)
return QVariant(typeCode, reinterpret_cast<SbkBaseWrapper*>(pyObj)->cptr[0]); return QVariant(typeCode, reinterpret_cast<SbkBaseWrapper*>(pyObj)->cptr[0]);