]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / lyxfunc.C
index 571df1d930a86eb912f949530785cd309c1b2bab..24a0a3406fdc1c701fa79d26ae19b236a6fa1249 100644 (file)
@@ -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;