]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
PDF-form.lyx: add a note
[lyx.git] / src / Text3.cpp
index 8398dd7b509250c2ab65edf94566a6da8e171ec1..f80bde6554d38c8fe10b5f0c9aaaec32fbec7aa1 100644 (file)
@@ -1302,8 +1302,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        else if (arg == "wmf")
                                type = Clipboard::WmfGraphicsType;
                        else
-                               // We used to assert, but couldn't the argument come from, say, the
-                               // minibuffer and just be mistyped?
+                               // we also check in getStatus()
                                LYXERR0("Unrecognized graphics type: " << arg);
 
                        pasteClipboardGraphics(cur, bv->buffer().errorList("Paste"), type);
@@ -1312,6 +1311,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                bv->buffer().errors("Paste");
                cur.clearSelection(); // bug 393
                cur.finishUndo();
+               bv->buffer().updatePreviews();
                break;
        }
 
@@ -2943,6 +2943,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
                }
 
                // unknown argument
+               LYXERR0("Unrecognized graphics type: " << arg);
+               // we don't want to assert if the user just mistyped the LFUN
+               LATTEST(cmd.origin() != FuncRequest::INTERNAL);
                enable = false;
                break;
         }