]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Try even harder to obtain an instant preview
[lyx.git] / src / Text3.cpp
index 4bd45c488a33c9da7166222a289e4960f2004d49..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);
@@ -2944,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;
         }