FLTK logo

STR #327

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.