| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]
STR #2800
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Unassigned |
Summary: | background not drawn in widget when label empty and image has been set to null |
Version: | 2.0-current |
Created By: | jwalter |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | jwalter 23:46 Jan 19, 2012 |
| 1 label is empty. 2 image was set. 3 widget was drawn.
4 set image to null.
5 problem: function returns before background is drawn.
void Widget::draw() { clear_flag(HIGHLIGHT); if (box() == NO_BOX) { // check for completely blank widgets. We must not clip to their // area because it will break lots of programs that assumme these // can overlap any other widgets: if (!image() && (!label() || align() != ALIGN_CENTER && !(align()&ALIGN_INSIDE))) { fl_did_clipping = this; return; } // draw the background behind the invisible widget: draw_background(); } else { draw_box(); } draw_label(); } | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |