X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXSendto.C;h=2c95a3089b9a8782e0995ed59699723d46bc9042;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=271c6a33be599e7b82474bac434d5a44dc6e382f;hpb=535dd32c4ca49739583b37293e28db48ac1ecec3;p=lyx.git diff --git a/src/LyXSendto.C b/src/LyXSendto.C index 271c6a33be..2c95a3089b 100644 --- a/src/LyXSendto.C +++ b/src/LyXSendto.C @@ -23,6 +23,8 @@ extern bool MenuRunDvips(Buffer *buffer, bool wait); void MenuSendto() { + static int ow = -1, oh; + // do this only if the command is empty if (!fl_get_input(fd_form_sendto->input_cmd) && !lyxrc->custom_export_command.empty()) @@ -34,6 +36,11 @@ void MenuSendto() fl_show_form(fd_form_sendto->form_sendto, FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER, _("Send Document to Command")); + if (ow < 0) { + ow = fd_form_sendto->form_sendto->w; + oh = fd_form_sendto->form_sendto->h; + } + fl_set_form_minsize(fd_form_sendto->form_sendto, ow, oh); } }