]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-page-cache.c
make page size calculation consistent and set it to (int)( width * scale +
[evince.git] / backend / ev-page-cache.c
index c66a1a42d9ec7444b37109c8f51a249ada2c8a95..6302c42e03b973fcc8b79bdd8cdaf62d3b6d1346 100644 (file)
@@ -308,9 +308,9 @@ ev_page_cache_get_size (EvPageCache *page_cache,
        }
 
        if (width)
-               *width = (*width) * scale;
+               *width = (int) ((*width) * scale + 0.5);
        if (width)
-               *height = (*height) * scale;
+               *height = (int) ((*height) * scale + 0.5);
 
 }