Jean-Marc Lasgouttes wrote:

> I had a different idea while driving home, which was to avoid the draw
> when there is no selection. It is somewhat orthogonal to your version,
> but I think both make sense.

Of course.

> What about the following combined patch? 
> 
> I also added the line
> +     pinop.base = pi.base;
> which somehow makes me feel safer.

Maybe even

        PainterInfo pinop(pi);
        pinop.pain = nop;

?

Yesterday I was not sure whether drawing with the null painter really fills
the coord cache correctly, but now I am: The insets determine their
coordinates from the given base point and metrics information only. Both
have nothing to do with the painter, the painter only receives the
positions for drawing, so it is safe to use the null painter.


Georg

Reply via email to