mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-15 01:41:43 +00:00
branch: Fix bug 5472: Crash while switching to Word
http://bugzilla.lyx.org/show_bug.cgi?id=5472 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/branches/BRANCH_1_6_X@27739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ebb928d7ce
commit
6c2388a9c9
@ -572,6 +572,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;
|
||||||
}
|
}
|
||||||
|
@ -127,6 +127,8 @@ What's new
|
|||||||
|
|
||||||
- Fix Preferences dialog in fullscreen mode (bug 5274).
|
- Fix Preferences dialog in fullscreen mode (bug 5274).
|
||||||
|
|
||||||
|
- Fix the registration of mimetypes (bug 5472).
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user