summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-07 15:09:08 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-07 15:09:08 +0100
commit214b133298f4a1b31e9b6ab89392fcd574fa6691 (patch)
tree74492c92b42bf866823efdb06de3db37376eaf0a /src
parentaa2d058f101b4cd226afad397f9b27a8d0d7416a (diff)
Fixes initial calculation of line number in Fl_Text_Display (#830)
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Display.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 090c79ca0..d1f7bb035 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -228,6 +228,7 @@ void Fl_Text_Display::linenumber_width(int width) {
if (width < 0) return;
mLineNumWidth = width;
recalc_display(); // recalc line#s // resize(x(), y(), w(), h());
+ if (width > 0) reset_absolute_top_line_number();
}
/**