| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #327
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Scroll::clear() does not adjust Fl_Group's child widgets |
Version: | 1.1.4 |
Created By: | crc1021.myrealbox |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | crc1021.myrealbox 08:46 Mar 24, 2004 |
| Fl_Scroll::clear() uses delete to remove widgets, but that leaves the child array and the number of children uneffected. Calls to children can cause crash.
Fl_Scroll.cxx
@@ -31,7 +31,7 @@ void Fl_Scroll::clear() { for (int i=children() - 1; i >= 0; i --) { Fl_Widget* o = child(i); - if (o != &hscrollbar && o != &scrollbar) delete o; + if (o != &hscrollbar && o != &scrollbar) remove(o); } } | |
|
#2 | mike 19:51 Apr 05, 2004 |
| FWIW, both delete and remove() need to be called... | |
|
#3 | mike 19:51 Apr 05, 2004 |
| Fixed in CVS - the anonymous CVS repository will be updated at midnight PST. | |
[ Return to Bugs & Features ]
|
| |