[evince] libview: Fix g_return condition in set_device_scale_on_surface()



commit 90a2586bd85352d4979553a812fd9ed6b0c4a893
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Thu Jul 24 13:16:02 2014 +0200

    libview: Fix g_return condition in set_device_scale_on_surface()
    
    Fail when device scale is not 1 if hidpi is not available, we were doing
    the opposite.

 libview/ev-pixbuf-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index e9019bd..6872886 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -265,7 +265,7 @@ set_device_scale_on_surface (cairo_surface_t *surface,
 #ifdef HAVE_HIDPI_SUPPORT
         cairo_surface_set_device_scale (surface, device_scale, device_scale);
 #else
-        g_return_if_fail (device_scale != 1);
+        g_return_if_fail (device_scale == 1);
 #endif
 }
 


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