From dec1938f3c0f65e9a4deb55523033200ff79e3dc Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 20 Apr 2020 13:30:48 +0200 Subject: Make draw() protected (Fl_Tree + Fl_Table) Widget draw() methods must be protected per FLTK convention. --- FL/Fl_Table.H | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'FL/Fl_Table.H') diff --git a/FL/Fl_Table.H b/FL/Fl_Table.H index 7658e3ff9..ad91d62a6 100644 --- a/FL/Fl_Table.H +++ b/FL/Fl_Table.H @@ -10,11 +10,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // // Please report all bugs and problems on the following page: // -// http://www.fltk.org/str.php +// https://www.fltk.org/str.php // #ifndef _FL_TABLE_H @@ -423,7 +423,10 @@ protected: // Indicate partial redraw needed of some cells damage(FL_DAMAGE_CHILD); } - + + // draw() has to be protected per FLTK convention (was public in 1.3.x) + void draw(); + public: Fl_Table(int X, int Y, int W, int H, const char *l=0); ~Fl_Table(); @@ -758,7 +761,6 @@ public: int move_cursor(int R, int C, int shiftselect); int move_cursor(int R, int C); void resize(int X, int Y, int W, int H); // fltk resize() override - void draw(void); // fltk draw() override // This crashes sortapp() during init. // void box(Fl_Boxtype val) { -- cgit v1.2.3