From 5a5db4e5de5bd0ef1377fe3cc6fab50ccb45734e Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 8 Aug 2009 01:25:17 +0000 Subject: [PATCH] A slightly different work-around which also captures the 25% scaling that was reported. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30919 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiImage.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiImage.cpp b/src/frontends/qt4/GuiImage.cpp index b004bdb547..07c2c9854e 100644 --- a/src/frontends/qt4/GuiImage.cpp +++ b/src/frontends/qt4/GuiImage.cpp @@ -171,12 +171,11 @@ bool GuiImage::scale(Params const & params) qreal scale = qreal(params.scale) / 100.0; #if QT_VERSION >= 0x040500 - // Due to a bug in Qt, LyX will crash when scaling an - // image with an odd height to 50%. + // Due to a bug in Qt, LyX will crash for certain + // (integer) 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. - if (params.scale == 50) - scale += 0.0001; + scale += 0.0001; #endif QMatrix m;