On 04/12/12 08:09, Domingo Alvarez Duarte wrote:
> Also there is one static variable inside Fl_Tree::handle that is a bug  
> waiting to wakeup if someone try to make some kind of master detail with  
> two or more Fl_Trees:
> 
> static Fl_Tree_Item *lastselect = 0;

        Yes, thanks for pointing it out.

        It's not quite a bug so much as a 'carefully applied fix'
        to avoid breaking ABI.

        IIRC, this was added after 1.3.0 was released, so instead
        of doing the obvious thing to move it into the Fl_Tree class,
        it had to be made static to prevent breaking ABI.

        Since that code was added, we now have a way to conditionally
        break ABI, so that can be surrounded by #ifdef's to be solved.

        Also, I don't think it's so much of a bug as you might think;
        the variable only holds state information for the duration of
        a mouse push-and-drag. And even if you drag from one tree to
        another, nothing bad happens.
_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to