diff options
author | Carlos Garcia Campos <[email protected]> | 2014-07-24 13:16:02 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-26 15:36:00 +0200 |
commit | 14c88f266b1614474a94fb576fc50381e692342d (patch) | |
tree | bfd8c47d8fe50ae4f5285fd25bef9cdf3c73f999 | |
parent | 58486bb360b2880eefe376b1ba9fdac3b1268422 (diff) | |
download | atril-14c88f266b1614474a94fb576fc50381e692342d.tar.bz2 atril-14c88f266b1614474a94fb576fc50381e692342d.tar.xz |
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
-rw-r--r-- | 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 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 } |