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:
Vincent van Ravesteijn 2008-11-29 14:16:00 +00:00
parent ebb928d7ce
commit 6c2388a9c9
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -127,6 +127,8 @@ What's new
- Fix Preferences dialog in fullscreen mode (bug 5274).
- Fix the registration of mimetypes (bug 5472).
* DOCUMENTATION AND LOCALIZATION