diff --git a/include/progind.cpp b/include/progind.cpp index de331ed0a..a8364f413 100755 --- a/include/progind.cpp +++ b/include/progind.cpp @@ -28,9 +28,8 @@ TIndwin::TIndwin(long max, const char* txt, bool cancel, bool bar, int div) word maxlen = div; const word lines = measure_text(testo, maxlen); - int ver = lines+2; - - int hor = maxlen+2; if (hor > 78) hor = 78; + int ver = lines+3; + int hor = maxlen+3; if (hor > 78) hor = 78; if (bar) { @@ -41,7 +40,7 @@ TIndwin::TIndwin(long max, const char* txt, bool cancel, bool bar, int div) set_win(create_interface(TASK_WIN, -1, -1, hor, ver, TITLE_TEXT, this, FALSE)); - _text = new TMultiline_control(win(), DLG_NULL, 1, 1, hor-2, lines, 512, "CD", ""); + _text = new TMultiline_control(win(), DLG_NULL, 1, 1, hor-2, lines+1, 512, "CD", ""); testo.replace('\n', '\r'); _text->set_caption(testo);