Author: matt
Date: 2011-09-30 23:48:50 -0700 (Fri, 30 Sep 2011)
New Revision: 9107
Log:
If a vertical scrollbar is added, wrapped lines must be recalculated.
Modified:
branches/branch-1.3/src/Fl_Text_Display.cxx
Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2011-09-30 17:47:37 UTC (rev
9106)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2011-10-01 06:48:50 UTC (rev
9107)
@@ -315,7 +315,7 @@
/* In continuous wrap mode, a change in width affects the total number of
lines in the buffer, and can leave the top line number incorrect, and
the top character no longer pointing at a valid line start */
- if (mContinuousWrap && !mWrapMarginPix && W!=oldWidth) {
+ if (mContinuousWrap && !mWrapMarginPix && (W!=oldWidth ||
text_area.w!=oldTAWidth)) {
int oldFirstChar = mFirstChar;
mNBufferLines = count_lines(0, buffer()->length(), true);
mFirstChar = line_start(mFirstChar);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit