From 071f4912a72a12718a9cd4fb53758feaa375bd51 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 21 Oct 2017 10:31:47 +0000 Subject: [PATCH] Revert accidentally committed part of r12511 (STR #2788). r12511: "Addresses STR #2788 for cursor positioning with mouse-click ..." The here reverted part was the proposed patch of STR #3412: "Fl_Text_Display scroll bug (style table with font != textsize() + wrap)". See patch file: http://www.fltk.org/strfiles/3412/quickfix.patch git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Text_Display.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 1db4fa43b..ba540f839 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -516,8 +516,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) { text_area.w, oldTAWidth, text_area.w - oldTAWidth); #endif // DEBUG2 - if (mContinuousWrap && !mWrapMarginPix ) { - //if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) { + if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) { int oldFirstChar = mFirstChar; mNBufferLines = count_lines(0, buffer()->length(), true);