diff options
author | jcid <devnull@localhost> | 2008-09-30 16:59:01 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-30 16:59:01 +0200 |
commit | 776b881bb7301487f7b0bf82e005b10e4b84f9a0 (patch) | |
tree | e346db940a91e95151465a0e1360e31d4d88a57d /src | |
parent | 0f7c6294d403e3ed80961e91f906f118e0f0adc5 (diff) |
- Added a workaround for missing lines with "View Source".
Diffstat (limited to 'src')
-rw-r--r-- | src/dialog.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dialog.cc b/src/dialog.cc index 0adb1d1a..69781f32 100644 --- a/src/dialog.cc +++ b/src/dialog.cc @@ -133,8 +133,6 @@ void *a_Dialog_make_text_window(const char *txt, const char *title) TextDisplay *td = new TextDisplay(0,0,ww, wh-bh); td->buffer()->text(txt); - /* enable wrapping lines; text uses entire width of window */ - td->wrap_mode(true, 0); if (textfont) td->textfont(textfont); @@ -148,6 +146,11 @@ void *a_Dialog_make_text_window(const char *txt, const char *title) line_num_width = (int)(line_num_width * fltk::getwidth("0")); td->linenumber_width(line_num_width); + /* enable wrapping lines; text uses entire width of window */ + td->wrap_mode(true, false); + /* WORKAROUND: FLTK may not display all the lines without this */ + td->resize(ww+1,wh-bh); + ReturnButton *b = new ReturnButton (0, wh-bh, ww, bh, "Close"); b->callback(window_close_cb, window); |