compilation warning: scale is unsigned

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28511 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-02-16 10:07:16 +00:00
parent 22e13587b3
commit f1c6bfdc9d

View File

@ -165,7 +165,7 @@ bool GuiImage::scale(Params const & params)
{ {
QImage const & image = is_transformed_ ? transformed_ : original_; QImage const & image = is_transformed_ ? transformed_ : original_;
if (params.scale < 0 || params.scale == 100) if (params.scale == 100)
return false; return false;
qreal const scale = qreal(params.scale) / 100.0; qreal const scale = qreal(params.scale) / 100.0;