[dia] Bug #587967 - line artifacts with ellipse



commit 699d447e9fa3650144fd80b8c4153912987d0514
Author: Hans Breuer <hans breuer org>
Date:   Tue Jul 7 22:33:11 2009 +0200

    Bug #587967 - line artifacts with ellipse

 plug-ins/cairo/diacairo-renderer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/cairo/diacairo-renderer.c b/plug-ins/cairo/diacairo-renderer.c
index be1495d..09610a3 100644
--- a/plug-ins/cairo/diacairo-renderer.c
+++ b/plug-ins/cairo/diacairo-renderer.c
@@ -559,6 +559,9 @@ _ellipse(DiaRenderer *self,
   
 #if 1
   cairo_save (renderer->cr);
+  /* don't create a line from the current point to the beginning 
+   * of the ellipse */
+  cairo_new_sub_path (renderer->cr);
   /* copied straight from cairo's documentation, and fixed the bug there */
   cairo_translate (renderer->cr, center->x, center->y);
   cairo_scale (renderer->cr, width / 2., height / 2.);



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