From 2a3e86921094748dc1188e1bfe073c6fbdfec996 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 27 Oct 2017 17:03:55 +0000 Subject: [PATCH] STR #3395: Revisions as per chris's comment #4. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Display.H | 4 ++-- src/Fl_Text_Display.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index d96c81ba3..2ea96dd17 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; recalc_display(); } + void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0; } /** 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; recalc_display(); } + void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0; } /** Gets the default color of text in the widget. diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index dfed62395..a227d8850 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -3663,6 +3663,7 @@ void Fl_Text_Display::draw(void) { // draw the non-text, non-scrollbar areas. if (damage() & FL_DAMAGE_ALL) { + recalc_display(); // printf("drawing all (box = %d)\n", box()); if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { // if to printer, draw the background