[gnome-photos/wip/rishi/double-buffering: 10/12] image-view: Be more strict about what is acceptable



commit 2098c564d0cdb113672d8647488eff2cb1d2b8a6
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jan 17 10:58:57 2017 +0100

    image-view: Be more strict about what is acceptable

 src/photos-image-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index f898c8f..ad4aa78 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -185,8 +185,10 @@ photos_image_view_computed (PhotosImageView *self, GeglRectangle *rect)
 {
   cairo_status_t status;
 
+  g_return_if_fail (PHOTOS_IS_IMAGE_VIEW (self));
   g_return_if_fail (GEGL_IS_NODE (self->buffer_source));
   g_return_if_fail (GEGL_IS_NODE (self->graph));
+  g_return_if_fail (GEGL_IS_NODE (self->node));
   g_return_if_fail (self->bbox_region != NULL);
   g_return_if_fail (self->region != NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]