> labeltext() is called plenty from various non-repaint events, so it can't > really be made to depend on a context. > > Yet it is calling ULength(), the latter depending on the drawing context for > the > scaling factor. > > Any ideas how to decouple that? I haven't looked very closely, I admit.
Further note: the code in question is below the telling comment /* Redraw the label */ -- so it should be removed, preserving any side effects. It appears to have no side effects besides moving the origin of the areawin, thus I put it into an #if 0 block. I presume that this code intends to keep the label visible in the window while you edit it. This will need a more general solution that applies to editing of any element, and will have to wait until all the elements become QGraphicElemens. Cheers, Kuba _______________________________________________ Xcircuit-dev mailing list [email protected] http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev
