diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-03-13 14:15:25 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-03-13 14:15:25 +0000 |
| commit | 2783846e2676f2458d01b29bf0a56a31d5b3594a (patch) | |
| tree | 0ffb2ea1f8a95f58b2bedc2889488145c2c45e12 /src/extension/internal/cairo-render-context.cpp | |
| parent | remove wrong format indication in lossy format warning (was always org.inksca... (diff) | |
| download | inkscape-2783846e2676f2458d01b29bf0a56a31d5b3594a.tar.gz inkscape-2783846e2676f2458d01b29bf0a56a31d5b3594a.zip | |
apparently bbox numbers in PS should be integers.
Fixed bugs:
- https://launchpad.net/bugs/380501
(bzr r10100)
Diffstat (limited to 'src/extension/internal/cairo-render-context.cpp')
| -rw-r--r-- | src/extension/internal/cairo-render-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
