]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
remove duplicated code (is already in constructor)
[lyx.git] / src / Text3.cpp
index c72e470333e8fb5ea849307af223a313bd3cb6dd..d978e3f6e72e58189422641eb0b552b0c7cceea5 100644 (file)
@@ -935,7 +935,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        pasteFromStack(cur, bv->buffer().errorList("Paste"),
                                       convert<unsigned int>(arg));
                } else {
-                       Clipboard::GraphicsType type;
+                       Clipboard::GraphicsType type = Clipboard::AnyGraphicsType;
                        if (arg == "pdf")
                                type = Clipboard::PdfGraphicsType;
                        else if (arg == "png")