Tomaz Canabrava wrote:
infinite recursion on recalculate.
Qt should only send the itemChangeEvent *if* the position changed ( if
I setPos with the same pos() things shouldn't trigger itemChange) but
it seems that this is not true. Can you two put a qDebug()<<  pos();
on the recalculate to see if the positions are the same or if we are
getting something weirder on?

OK, I reverted Dirk's commit e74914fdd0f439d3584657147c81539d2a863955 and inserted qDebug() << pos(); before line 44 of ruleritem.cpp.

That gives me:

QPointF(0, 0)
QPointF(nan, 3)
QPointF(nan, 3)
QPointF(nan, 3)
... and a gazillion repeats of that last line before it crashes.

Henrik

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to