DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2657 Version: 1.3-current There appears to be some crazy indenting throughout Fl_File_Chooser where code is flush all the way left, successive if()'s that walk off to the right, etc. (See eg. the code for add_extra() on the last page of Fl_File_Chooser.cxx, excerpted below) 'svn blame' shows some of this to go way back to r2252, and some as recent as 6120. I'd be happy to fix, not sure if fixing this before or after 1.3.0 is better; suggs? ---------- Fl_Widget* Fl_File_Chooser::add_extra(Fl_Widget* gr) { Fl_Widget* ret=ext_group; if (gr==ext_group) { return ret; } // walking right.. if (ext_group) { int sh=ext_group->h()+4; Fl_Widget* svres=window->resizable(); // flush left.. window->resizable(NULL); window->size(window->w(),window->h()-sh); window->remove(ext_group); ext_group=NULL; window->resizable(svres); } // walking right if (gr) { int nh=window->h()+gr->h()+4; Fl_Widget* svres=window->resizable(); // flush left window->resizable(NULL); window->size(window->w(),nh); gr->position(2,okButton->y()+okButton->h()+2); window->add(gr); ext_group=gr; window->resizable(svres); } // walk right return ret; } // // End of "$Id: Fl_File_Chooser ---------- Link: http://www.fltk.org/str.php?L2657 Version: 1.3-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
