X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.C;h=24a0a3406fdc1c701fa79d26ae19b236a6fa1249;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=571df1d930a86eb912f949530785cd309c1b2bab;hpb=c1093f1c92b21e163f988935cb65ff5e75a6641a;p=lyx.git diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 571df1d930..24a0a3406f 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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;