Commit c09b5154 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne

Return zero for a null object in the graphics node instance

Reviewed-by: kkoehne
parent cd62b9a5
......@@ -44,6 +44,9 @@ GraphicsObjectNodeInstance::GraphicsObjectNodeInstance(QGraphicsObject *graphics
QGraphicsObject *GraphicsObjectNodeInstance::graphicsObject() const
if (object() == 0)
return 0;
return static_cast<QGraphicsObject*>(object());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment