]> git.lyx.org Git - features.git/commitdiff
Cure some compiler warnings.
authorAngus Leeming <leeming@lyx.org>
Tue, 25 Mar 2003 18:10:10 +0000 (18:10 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 25 Mar 2003 18:10:10 +0000 (18:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6574 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/xformsImage.C

index 0e7b57f16e7646649a1087c74b4d9d0a490d8b7e..5f24bcc84063be32d4b153fe35110571e745e9c3 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-25  Angus Leeming  <leeming@lyx.org>
+
+       * xformsImage.C (clip): cure compiler warnings.
+
 2003-03-24  Angus Leeming  <leeming@lyx.org>
 
        * xforms_resize.C (get_scaling_factor): "cure" float -> int warnings.
index adb5dcdf1992edb93d71a1d0548231cc9e517de2..510763b498e226e58766e1e6fb1ff055f0239fad 100644 (file)
@@ -282,9 +282,9 @@ void xformsImage::clip(Params const & params)
        // We must, therefore, be careful...
        int const xoffset_l = params.bb.xl;
        int const yoffset_b = params.bb.yb;
-       int const xoffset_r = image_->w > params.bb.xr ?
+       int const xoffset_r = image_->w > int(params.bb.xr) ?
                image_->w - params.bb.xr : 0;
-       int const yoffset_t = image_->h > params.bb.yt ?
+       int const yoffset_t = image_->h > int(params.bb.yt) ?
                image_->h - params.bb.yt : 0;
 
        flimage_crop(image_, xoffset_l, yoffset_t, xoffset_r, yoffset_b);