From 14c88f266b1614474a94fb576fc50381e692342d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 24 Jul 2014 13:16:02 +0200 Subject: 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. origin commit: https://git.gnome.org/browse/evince/commit/?id=90a258 --- libview/ev-pixbuf-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c index 89c5cd5e..ca96d484 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 } -- cgit v1.2.1