From 2783846e2676f2458d01b29bf0a56a31d5b3594a Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 13 Mar 2011 15:15:25 +0100 Subject: apparently bbox numbers in PS should be integers. Fixed bugs: - https://launchpad.net/bugs/380501 (bzr r10100) --- src/extension/internal/cairo-render-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 503fb8b31..9a612549d 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -791,8 +791,8 @@ CairoRenderContext::setupSurface(double width, double height) Inkscape::SVGOStringStream os_pagebbox; os_bbox.setf(std::ios::fixed); // don't use scientific notation os_pagebbox.setf(std::ios::fixed); // don't use scientific notation - os_bbox << "%%BoundingBox: 0 0 " << width << height; - os_pagebbox << "%%PageBoundingBox: 0 0 " << width << height; + os_bbox << "%%BoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height); // apparently, the numbers should be integers. (see bug 380501) + os_pagebbox << "%%PageBoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height); cairo_surface_t *surface = NULL; cairo_matrix_t ctm; -- cgit v1.2.3