X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.C;h=24a0a3406fdc1c701fa79d26ae19b236a6fa1249;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=8ac1df0c703285a1cd3ae20c483a2a866c1c31c9;hpb=5362b33b0f263cec4218af04b5eebc73218dffe9;p=lyx.git diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 8ac1df0c70..24a0a3406f 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -720,14 +720,14 @@ string LyXFunc::Dispatch(int ac, int res = one.startscript(Systemcalls::System, tmp); if (res == 0) { setMessage(string( - N_("Document exported as HTML to file: ")) + result); + _("Document exported as HTML to file: ")) + result); } else { setErrorMessage(string( - N_("An unexpected error occured while converting document to HTML in file:")) + result); + _("An unexpected error occured while converting document to HTML in file:")) + result); } } else { - setErrorMessage(string(N_("Unknown export type: ")) + setErrorMessage(string(_("Unknown export type: ")) + extyp); } } @@ -766,10 +766,16 @@ string LyXFunc::Dispatch(int ac, if (fd_form_toc->form_toc->visible) { fl_raise_form(fd_form_toc->form_toc); } else { + static int ow = -1, oh; fl_show_form(fd_form_toc->form_toc, FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER, _("Table of Contents")); + if (ow < 0) { + ow = fd_form_toc->form_toc->w; + oh = fd_form_toc->form_toc->h; + } + fl_set_form_minsize(fd_form_toc->form_toc, ow, oh); } break;