[dia] Calculate device unit after scaling the cairo context



commit e5980d46b64b6dadf7f972a6c2933a808abb1cc1
Author: Hans Breuer <hans breuer org>
Date:   Tue Jul 26 20:52:34 2011 +0200

    Calculate device unit after scaling the cairo context

 plug-ins/cairo/diacairo-renderer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/cairo/diacairo-renderer.c b/plug-ins/cairo/diacairo-renderer.c
index 72c3655..27e7cba 100644
--- a/plug-ins/cairo/diacairo-renderer.c
+++ b/plug-ins/cairo/diacairo-renderer.c
@@ -112,12 +112,12 @@ begin_render(DiaRenderer *self, const Rectangle *update)
     tmargin = data->paper.tmargin / data->paper.scaling;
   }
 
+  cairo_scale (renderer->cr, renderer->scale, renderer->scale);
   /* to ensure no clipping at top/left we need some extra gymnastics,
    * otherwise a box with a line witdh one one pixel might loose the
    * top/left border as in bug #147386 */
   ensure_minimum_one_device_unit (renderer, &onedu);
 
-  cairo_scale (renderer->cr, renderer->scale, renderer->scale);
   if (update && paginated) {
     cairo_rectangle (renderer->cr, lmargin, tmargin,
                      update->right - update->left, update->bottom - update->top);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]