X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfr0.C;h=27e85b893b4af5973a6a58b77782b78efbad533b;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=9dc5c15b4662a304a0d3abfc066aadbf3cf7d735;hpb=35584afc1162dec2cf9fff79305e95cb3b75aefb;p=lyx.git diff --git a/src/lyxfr0.C b/src/lyxfr0.C index 9dc5c15b46..27e85b893b 100644 --- a/src/lyxfr0.C +++ b/src/lyxfr0.C @@ -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(); }