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