diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-10-01 06:48:50 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-10-01 06:48:50 +0000 |
| commit | dde4dbd61f5b8efd2ac5a995e896a4ed8a58140d (patch) | |
| tree | fd15c66a5ab0eb04894055ee4aea25daf8949341 /src/Fl_Text_Display.cxx | |
| parent | 9bdc310346077e3fd60371b3d3d0c7db54db10e3 (diff) | |
If a vertical scrollbar is added, wrapped lines must be recalculated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index fb02fab70..3955f196b 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -315,7 +315,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) { /* 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); |
