X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiImage.cpp;h=e7defe7ec585933bd5d3cb5dcd6e5230c5ecb97d;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=07c2c9854e30056ddd61a1827e33f048eacc44f1;hpb=5a5db4e5de5bd0ef1377fe3cc6fab50ccb45734e;p=lyx.git diff --git a/src/frontends/qt4/GuiImage.cpp b/src/frontends/qt4/GuiImage.cpp index 07c2c9854e..e7defe7ec5 100644 --- a/src/frontends/qt4/GuiImage.cpp +++ b/src/frontends/qt4/GuiImage.cpp @@ -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