From a27da5e58236882f1f95ed8a75938819a8aa88fe Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Thu, 26 Oct 2017 16:07:53 +0000 Subject: Solves STR#3395. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Display.H | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FL/Fl_Text_Display.H') diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index a15c6a465..d96c81ba3 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -293,7 +293,7 @@ public: Sets the default font used when drawing text in the widget. \param s default text font face */ - void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0;} + void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0; recalc_display(); } /** Gets the default size of text in the widget. @@ -305,7 +305,7 @@ public: Sets the default size of text in the widget. \param s new text size */ - void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0;} + void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0; recalc_display(); } /** Gets the default color of text in the widget. @@ -323,6 +323,7 @@ public: int wrapped_row(int row) const; void wrap_mode(int wrap, int wrap_margin); + virtual void recalc_display(); virtual void resize(int X, int Y, int W, int H); /** -- cgit v1.2.3