From 272514cebfe9845f9a96ea065e97ffff68212e0f Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 13 Nov 2012 21:29:12 +0000 Subject: [PATCH] Fixes STR#2886: prevents scrollbars from drawing when widget is sized too small to be visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Browser_.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index f4a729d6e..0b6cac865 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -423,8 +423,9 @@ J1: fl_pop_clip(); } fl_pop_clip(); - redraw1 = redraw2 = 0; + fl_push_clip(x(),y(),w(),h()); // STR# 2886 + redraw1 = redraw2 = 0; if (!dont_repeat) { dont_repeat = 1; // see if changes to full_height caused by calls to slow_height @@ -474,6 +475,7 @@ J1: } real_hposition_ = hposition_; + fl_pop_clip(); } // Quick way to delete and reset everything: