Code

fix bug 168275 by removing a ceil on document height and width in pdf/eps/ps exporter.
authorJohan Engelen <goejendaagh@zonnet.nl>
Sat, 10 Apr 2010 12:51:38 +0000 (14:51 +0200)
committerJohan Engelen <goejendaagh@zonnet.nl>
Sat, 10 Apr 2010 12:51:38 +0000 (14:51 +0200)
src/extension/internal/cairo-renderer.cpp

index 6e4bb3b7e366e8438c235ab21853627eb707c875..ebdb82a69c6cf02ff5c59f8c1349f090de30cb1b 100644 (file)
@@ -608,8 +608,8 @@ CairoRenderer::setupDocument(CairoRenderContext *ctx, SPDocument *doc, bool page
     NRRect d;
     if (pageBoundingBox) {
         d.x0 = d.y0 = 0;
-        d.x1 = ceil(sp_document_width(doc));
-        d.y1 = ceil(sp_document_height(doc));
+        d.x1 = sp_document_width(doc);
+        d.y1 = sp_document_height(doc);
     } else {
         sp_item_invoke_bbox(base, &d, sp_item_i2d_affine(base), TRUE, SPItem::RENDERING_BBOX);
     }