From f1c6bfdc9dca6895c47d6c4e0b2a46ea25a282b9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 16 Feb 2009 10:07:16 +0000 Subject: [PATCH] compilation warning: scale is unsigned git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28511 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiImage.cpp b/src/frontends/qt4/GuiImage.cpp index ceea8fc05b..16ddeeca75 100644 --- a/src/frontends/qt4/GuiImage.cpp +++ b/src/frontends/qt4/GuiImage.cpp @@ -165,7 +165,7 @@ bool GuiImage::scale(Params const & params) { QImage const & image = is_transformed_ ? transformed_ : original_; - if (params.scale < 0 || params.scale == 100) + if (params.scale == 100) return false; qreal const scale = qreal(params.scale) / 100.0;