summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-21 10:31:47 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-21 10:31:47 +0000
commit071f4912a72a12718a9cd4fb53758feaa375bd51 (patch)
treeb1ed739a5fa947d81487171f964563edd7d3e0e6 /src/Fl_Text_Display.cxx
parent4593081b69c67228595a235c5a3bd7f54fab96f2 (diff)
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
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx3
1 files changed, 1 insertions, 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);