index 6e4bb3b7e366e8438c235ab21853627eb707c875..52f07059175ca4eb70df166cf4a567d28d868e4a 100644 (file)
@@ -631,12 +631,8 @@ CairoRenderer::setupDocument(CairoRenderContext *ctx, SPDocument *doc, bool page
if (ret && !pageBoundingBox)
{
- double high = sp_document_height(doc);
- if (ctx->_vector_based_target)
- high *= PT_PER_PX;
-
Geom::Matrix tp(Geom::Translate(-d.x0 * (ctx->_vector_based_target ? PX_PER_PT : 1.0),
- (d.y1 - high) * (ctx->_vector_based_target ? PX_PER_PT : 1.0)));
+ -d.y0 * (ctx->_vector_based_target ? PX_PER_PT : 1.0)));
ctx->transform(&tp);
}