From eb772d027dc1f523a939a8b78a3f40d133736487 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 25 Oct 2017 10:58:26 +0000 Subject: Fix scrollbar issue of Fl_Text_Display (STR #3412). This fix disables a part of the optimization introduced in svn r11208 (STR #3272). For more information see comments in STR #3412. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Text_Display.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index ba540f839..5664c93c7 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -492,6 +492,8 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) { // for large buffers that suffer from slow calculations of character width // to determine line wrapping. + oldTAWidth = -1; // force _first_ calculation in loop (STR #3412) + if (mContinuousWrap && !mWrapMarginPix) { int nvlines = (text_area.h + mMaxsize - 1) / mMaxsize; -- cgit v1.2.3