summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-25 10:58:26 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-25 10:58:26 +0000
commiteb772d027dc1f523a939a8b78a3f40d133736487 (patch)
treed63e3b19040178a5d5ae6b505790b0c01252b2fb /src/Fl_Text_Display.cxx
parenteb440f2d705110e189c0f7b475a23f33953d8a4a (diff)
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
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 2 insertions, 0 deletions
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;