mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 06:15:59 +00:00
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:
parent
c9e8849d32
commit
85f73a4271
@ -580,7 +580,8 @@ public:
|
|||||||
QMimeData const * mimeData) const
|
QMimeData const * mimeData) const
|
||||||
{
|
{
|
||||||
QVector<FORMATETC> formats;
|
QVector<FORMATETC> formats;
|
||||||
formats += cfFromMime(mimeType);
|
if (mimetype == emfMimeType() || mimetype == wmfMimeType())
|
||||||
|
formats += cfFromMime(mimeType);
|
||||||
return formats;
|
return formats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user