+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.
// 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);