Fl_Text_Display

* Avoid calling resize() too early
pull/1/head
Kamal Mostafa 2015-05-28 10:43:51 -07:00 zatwierdzone przez David Freese
rodzic c34a613d7a
commit dac5bf4dd8
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -300,6 +300,7 @@ void Fl_Text_Display_mod::resize(int X, int Y, int W, int H) {
#endif // DEBUG
Fl_Widget::resize(X,Y,W,H);
if (!buffer()) return;
if (!textfont()) return;
X += Fl::box_dx(box());
Y += Fl::box_dy(box());
W -= Fl::box_dw(box());