[gnome-photos/wip/rishi/gesture-zoom: 3/10] image-view: Be more strict about what is acceptable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/gesture-zoom: 3/10] image-view: Be more strict about what is acceptable
- Date: Mon, 16 Oct 2017 07:10:44 +0000 (UTC)
commit 3d63ba23e778d79ca8be20d190b5eb1fd96cd89d
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Oct 15 22:48:01 2017 +0200
image-view: Be more strict about what is acceptable
src/photos-image-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index 04f7612..7a2a684 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -1050,6 +1050,7 @@ void
photos_image_view_set_zoom (PhotosImageView *self, gdouble zoom)
{
g_return_if_fail (PHOTOS_IS_IMAGE_VIEW (self));
+ g_return_if_fail (zoom > 0.0);
if (photos_utils_equal_double (self->zoom, zoom))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]