X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flyx_gui.C;h=cc6498dc01b74af6c53a0b9003c160283520544a;hb=65e9b99a59e4e3ebc1fc6b688239faac5007b88e;hp=09ea9ad82d63c211901c5a484a7c0fa77ceeb4c7;hpb=c35b288b74ac9b1450a81c1520292ab95735bb0f;p=lyx.git diff --git a/src/lyx_gui.C b/src/lyx_gui.C index 09ea9ad82d..cc6498dc01 100644 --- a/src/lyx_gui.C +++ b/src/lyx_gui.C @@ -148,7 +148,7 @@ extern "C" int LyX_XErrHandler(Display *display, XErrorEvent *xeev) { //#warning Please see if you can trigger this! // emergency save - if (!bufferlist.isEmpty()) + if (!bufferlist.empty()) bufferlist.emergencyWriteAll(); // Get the reason for the crash. @@ -422,6 +422,9 @@ void LyXGUI::create_forms() fl_addto_choice(fd_form_character->choice_color, _(" No change %l| No color | Black | White | Red | Green " "| Blue | Cyan | Magenta | Yellow %l| Reset ")); + fl_set_form_minsize(fd_form_character->form_character, + fd_form_character->form_character->w, + fd_form_character->form_character->h); // the document form fd_form_document = create_form_form_document(); @@ -470,6 +473,9 @@ void LyXGUI::create_forms() _(" Smallskip | Medskip | Bigskip | Length ")); fl_set_input_return(fd_form_document->input_default_skip, FL_RETURN_ALWAYS); + fl_set_form_minsize(fd_form_document->form_document, + fd_form_document->form_document->w, + fd_form_document->form_document->h); // the paper form fd_form_paper = create_form_form_paper(); @@ -575,6 +581,8 @@ void LyXGUI::create_forms() // the ref form fd_form_ref = create_form_form_ref(); fl_set_form_atclose(fd_form_ref->form_ref, CancelCloseBoxCB, 0); + fl_set_form_minsize(fd_form_ref->form_ref, fd_form_ref->form_ref->w, + fd_form_ref->form_ref->h); // the latex options form fd_latex_options = create_form_LaTeXOptions();