Uninitialised StyleBuffer.

https://github.com/jamescoxon/dl-fldigi/issues/22
     Invalid data breaking fl_height() and fl_width()
pull/1/head
hexameron 2015-05-17 08:24:24 +00:00
rodzic 681c3e3d28
commit 8d64fe84dd
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -75,6 +75,7 @@ FTextBase::FTextBase(int x, int y, int w, int h, const char *l)
sbuf = new Fl_Text_Buffer_mod;
buffer(tbuf);
reset_styles(SET_FONT | SET_SIZE | SET_COLOR);
highlight_data(sbuf, styles, NATTR, FTEXT_DEF, 0, 0);
cursor_style(Fl_Text_Editor_mod::NORMAL_CURSOR);
@ -84,8 +85,6 @@ FTextBase::FTextBase(int x, int y, int w, int h, const char *l)
// Do we want narrower scrollbars? The default width is 16.
// scrollbar_width((int)floor(scrollbar_width() * 3.0/4.0));
reset_styles(SET_FONT | SET_SIZE | SET_COLOR);
}
void FTextBase::clear()