[dia] [transform] actually _use_ the new draw_object() method



commit 49cc66f8821f303e7e2608eb38a1b4d8d3132247
Author: Hans Breuer <hans breuer org>
Date:   Sun Sep 12 16:03:11 2010 +0200

    [transform] actually _use_ the new draw_object() method

 plug-ins/cairo/diacairo-renderer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/cairo/diacairo-renderer.c b/plug-ins/cairo/diacairo-renderer.c
index 6483a6b..367785d 100644
--- a/plug-ins/cairo/diacairo-renderer.c
+++ b/plug-ins/cairo/diacairo-renderer.c
@@ -186,7 +186,7 @@ draw_object (DiaRenderer *self, DiaObject *object, DiaMatrix *matrix)
     g_assert (sizeof(cairo_matrix_t) == sizeof(DiaMatrix));
     cairo_transform (renderer->cr, (cairo_matrix_t *)matrix);
   }
-  object->ops->draw(object, renderer);
+  object->ops->draw(object, DIA_RENDERER (renderer));
   if (matrix)
     cairo_set_matrix (renderer->cr, &before);
 }
@@ -1031,6 +1031,7 @@ cairo_renderer_class_init (DiaCairoRendererClass *klass)
   /* renderer members */
   renderer_class->begin_render = begin_render;
   renderer_class->end_render   = end_render;
+  renderer_class->draw_object = draw_object;
 
   renderer_class->set_linewidth  = set_linewidth;
   renderer_class->set_linecaps   = set_linecaps;



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