From 631ed501c53c7c2cba140cc5002a0f628d078658 Mon Sep 17 00:00:00 2001 From: Michael BOUCHAUD Date: Mon, 19 Dec 2011 10:06:32 +0000 Subject: [PATCH] elementary: photocam fix region get, here x and y can be negative SVN revision: 66328 --- legacy/elementary/src/lib/elm_photocam.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_photocam.c b/legacy/elementary/src/lib/elm_photocam.c index d713db816c..e2469734cb 100644 --- a/legacy/elementary/src/lib/elm_photocam.c +++ b/legacy/elementary/src/lib/elm_photocam.c @@ -1483,7 +1483,6 @@ elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) { *x = (wd->size.imw * sx) / wd->size.w; if (*x > wd->size.imw) *x = wd->size.imw; - else if (*x < 0) *x = 0; } if (w) { @@ -1504,7 +1503,6 @@ elm_photocam_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) { *y = (wd->size.imh * sy) / wd->size.h; if (*y > wd->size.imh) *y = wd->size.imh; - else if (*y < 0) *y = 0; } if (h) {