Item.mapFromItem() crashes with Items not created by the engine.
authorMartin Jones <martin.jones@nokia.com>
Tue, 26 Jun 2012 06:24:50 +0000 (16:24 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 09:37:10 +0000 (11:37 +0200)
commitbec02b3f36b7e266b00bb143c459cacabda69b69
treeffe18f8be27cfbd4d2856783308eaa6b151a527f
parent453e6e134510bdae8fe68519a4d42120ae21a53b
Item.mapFromItem() crashes with Items not created by the engine.

Item.mapFromItem() and Item.mapToItem() get the script engine from
the item they are called on.  Safer to use the script value passed
to the function to determine the engine being used.

Task-number: QTBUG-26280
Change-Id: Id9d6c952cc91c7799910b29a27e24945d8ba073b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/declarative/graphicsitems/qdeclarativeitem.cpp