Adjust the work-around for bug #5957.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31031 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-14 14:58:52 +00:00
parent 6f981418bf
commit d92ff67005

View File

@ -170,11 +170,10 @@ bool GuiImage::scale(Params const & params)
qreal scale = qreal(params.scale) / 100.0;
#if QT_VERSION >= 0x040500
#if (QT_VERSION >= 0x040500) && (QT_VERSION <= 0x040502)
// Due to a bug in Qt, LyX will crash for certain
// (integer) scaling factors and sizes of the image.
// scaling factors and sizes of the image.
// see bug #5957: http://www.lyx.org/trac/ticket/5957
// FIXME: Add an upper version limit as soon as the bug is fixed in Qt.
scale += 0.0001;
#endif