Skip to content

Commit 5345f83

Browse files
Carlos Garcia Camposraveit65
authored andcommitted
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
1 parent 2cae078 commit 5345f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libview/ev-pixbuf-cache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ set_device_scale_on_surface (cairo_surface_t *surface,
265265
#ifdef HAVE_HIDPI_SUPPORT
266266
cairo_surface_set_device_scale (surface, device_scale, device_scale);
267267
#else
268-
g_return_if_fail (device_scale != 1);
268+
g_return_if_fail (device_scale == 1);
269269
#endif
270270
}
271271

0 commit comments

Comments
 (0)