summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;