diff options
| author | Greg Ercolano <erco@seriss.com> | 2017-10-26 16:07:53 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2017-10-26 16:07:53 +0000 |
| commit | a27da5e58236882f1f95ed8a75938819a8aa88fe (patch) | |
| tree | c5b66efb9ad72207e7de203dceafcdd3aa399f38 /FL | |
| parent | 6774852be58f907fee096fe62c3425f2ca7c04d2 (diff) | |
Solves STR#3395.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Text_Display.H | 5 |
1 files changed, 3 insertions, 2 deletions
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); /** |
