[dia] Avoid some seams between grid aligned images



commit bf7c14d2e50578dee90323ed764c6d088a48b059
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 27 22:08:50 2011 +0200

    Avoid some seams between grid aligned images

 lib/diagdkrenderer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/diagdkrenderer.c b/lib/diagdkrenderer.c
index d2069dc..aba7632 100644
--- a/lib/diagdkrenderer.c
+++ b/lib/diagdkrenderer.c
@@ -804,8 +804,8 @@ draw_image (DiaRenderer *object,
     int org_width = gdk_pixbuf_get_width(org);
     int org_height = gdk_pixbuf_get_height(org);
     
-    real_width = dia_transform_length(renderer->transform, width);
-    real_height = dia_transform_length(renderer->transform, height);
+    real_width = ROUND(dia_transform_length(renderer->transform, width));
+    real_height = ROUND(dia_transform_length(renderer->transform, height));
     dia_transform_coords(renderer->transform, point->x, point->y,
 			 &real_x, &real_y);
 



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