Fix bug 5074: Crash while switching to Word

http://bugzilla.lyx.org/show_bug.cgi?id=5074

In GuiApplication.cpp the function cfFromMime returns an invalid FORMATETC struct with uninitialized members when the mimeType is not emf or wmf. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27727 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2008-11-28 22:48:50 +00:00
parent c9e8849d32
commit 85f73a4271

View File

@ -580,6 +580,7 @@ public:
QMimeData const * mimeData) const QMimeData const * mimeData) const
{ {
QVector<FORMATETC> formats; QVector<FORMATETC> formats;
if (mimetype == emfMimeType() || mimetype == wmfMimeType())
formats += cfFromMime(mimeType); formats += cfFromMime(mimeType);
return formats; return formats;
} }