diff options
| -rw-r--r-- | FL/Fl_Tree.H | 1 | ||||
| -rw-r--r-- | src/Fl_Tree_Item.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H index a53560f8b..2a4b8cfa3 100644 --- a/FL/Fl_Tree.H +++ b/FL/Fl_Tree.H @@ -277,6 +277,7 @@ enum Fl_Tree_Reason { }; class FL_EXPORT Fl_Tree : public Fl_Group { + friend class Fl_Tree_Item; Fl_Tree_Item *_root; // can be null! Fl_Tree_Item *_item_focus; // item that has focus box Fl_Tree_Item *_callback_item; // item invoked during callback (can be NULL) diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx index 79ab11ad4..5b8d8c471 100644 --- a/src/Fl_Tree_Item.cxx +++ b/src/Fl_Tree_Item.cxx @@ -8,6 +8,7 @@ #include <FL/Fl_Widget.H> #include <FL/Fl_Tree_Item.H> #include <FL/Fl_Tree_Prefs.H> +#include <FL/Fl_Tree.H> ////////////////////// // Fl_Tree_Item.cxx @@ -741,6 +742,7 @@ void Fl_Tree_Item::draw(int X, int &Y, int W, Fl_Widget *tree, // Draw child FLTK widget? if ( widget() && widget()->damage() ) { widget()->draw(); + ((Fl_Tree*)tree)->draw_outside_label(*widget()); } // Draw focus box around item's bg last if ( this == itemfocus && |
