]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfr0.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / lyxfr0.C
index 3bf83232347ec80b5d53d902a6895ff2404dbec1..27e85b893b4af5973a6a58b77782b78efbad533b 100644 (file)
@@ -26,7 +26,7 @@
 #include "lyxfr1.h"
 #include "lyxfunc.h"
 #include "lyxscreen.h"
-#include "error.h"
+#include "debug.h"
 #include "lyxtext.h"
 #include "gettext.h"
 #include "LyXView.h" // only because of form_main
@@ -85,6 +85,8 @@ LyXFindReplace0::LyXFindReplace0()
 
 void LyXFindReplace0::StartSearch()
 {
+       static int ow = -1, oh;
+
        FD_form_search *fd_fs = fd_form_search;
 
        if (fd_fs->form_search->visible) {
@@ -93,6 +95,11 @@ void LyXFindReplace0::StartSearch()
                fl_show_form(fd_fs->form_search,
                             FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
                             _("Find & Replace"));      // RVDK_PATCH_5
+               if (ow < 0) {
+                       ow = fd_form_search->form_search->w;
+                       oh = fd_form_search->form_search->h;
+               }
+               fl_set_form_minsize(fd_form_search->form_search, ow, oh);
        }
        ReInitFromForm();
 }