On Mon, Jul 07, 2003 at 11:50:25PM +0300, Martin Vermeer spake thusly:
> 
> First bug: nested Note/Branch insets don't work properly, the right
> mouse click always goes to the outermost one.
> 
> Fix: limit the effect of button 3 to the inset's button area.

This begs the question: the phrase 

        (cmd.x < button_length) &&
        (cmd.y >= button_top_y) && (cmd.y <= button_bottom_y)

(insetcollapsable.C:245) could be put into a routine

        bool InsetCollapsable::hitButton(FuncRequest const &) const;

I tried this and it works fine. Used in insetnote and insetbranch, at
least.

Good idea or not?

- Martin

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to