diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2022-10-04 12:48:46 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2022-10-04 12:48:46 +1100 |
commit | 2e652e0d9eaa867dfce6d442b80e8bc7f074a2f1 (patch) | |
tree | 4a3a223e708040b5a5a198b3ea8dfd3c46f521d9 /gtk/ScintillaGTK.cxx | |
parent | f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc (diff) | |
download | scintilla-mirror-2e652e0d9eaa867dfce6d442b80e8bc7f074a2f1.tar.gz |
Bug [#2349]. Fix bug where there were too many or too few lines when wrapping.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rwxr-xr-x | gtk/ScintillaGTK.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index a256c484b..ec6f83058 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1786,6 +1786,12 @@ void ScintillaGTK::Resize(int width, int height) { } if (IS_WIDGET_MAPPED(PWidget(wMain))) { ChangeSize(); + } else { + const PRectangle rcTextArea = GetTextRectangle(); + if (wrapWidth != rcTextArea.Width()) { + wrapWidth = rcTextArea.Width(); + NeedWrapping(); + } } alloc.x = 0; |