? objects/AADL/libaadl_objects.la
Index: app/export_png.c
===================================================================
RCS file: /cvs/gnome/dia/app/export_png.c,v
retrieving revision 1.20
diff -u -r1.20 export_png.c
--- app/export_png.c	22 Jan 2006 14:04:49 -0000	1.20
+++ app/export_png.c	7 Feb 2006 20:54:46 -0000
@@ -87,8 +87,8 @@
   png_color_8 sig_bit;
   png_bytep *row_ptr;
 
-  width  = (guint32) ((ext->right - ext->left) * DPCM * data->paper.scaling);
-  height = (guint32) ((ext->bottom - ext->top) * DPCM * data->paper.scaling);
+  width  = (guint32) ((ext->right - ext->left) * DPCM * data->paper.scaling + 2);
+  height = (guint32) ((ext->bottom - ext->top) * DPCM * data->paper.scaling + 2);
 
   if (app_is_interactive()) {
     /* We don't want multiple clicks:) */
Index: plug-ins/cairo/diacairo.c
===================================================================
RCS file: /cvs/gnome/dia/plug-ins/cairo/diacairo.c,v
retrieving revision 1.21
diff -u -r1.21 diacairo.c
--- plug-ins/cairo/diacairo.c	8 Jan 2006 16:29:23 -0000	1.21
+++ plug-ins/cairo/diacairo.c	7 Feb 2006 20:54:47 -0000
@@ -996,8 +996,8 @@
   case OUTPUT_PNG :
     /* quite arbitrary, but consistent with ../pixbuf ;-) */
     renderer->scale = 20.0 * data->paper.scaling; 
-    width  = (data->extents.right - data->extents.left) * renderer->scale;
-    height = (data->extents.bottom - data->extents.top) * renderer->scale;
+    width  = (data->extents.right - data->extents.left) * renderer->scale + 2;
+    height = (data->extents.bottom - data->extents.top) * renderer->scale + 2;
 
     DIAG_NOTE(g_message ("PNG Surface %dx%d\n", (int)width, (int)height));
     /* use case screwed by API shakeup. We need to special case */
@@ -1039,8 +1039,8 @@
   default :
     /* quite arbitrary, but consistent with ../pixbuf ;-) */
     renderer->scale = 20.0 * data->paper.scaling; 
-    width  = (data->extents.right - data->extents.left) * renderer->scale;
-    height = (data->extents.bottom - data->extents.top) * renderer->scale;
+    width  = (data->extents.right - data->extents.left) * renderer->scale + 2;
+    height = (data->extents.bottom - data->extents.top) * renderer->scale + 2;
     DIAG_NOTE(g_message ("Image Surface %dx%d\n", (int)width, (int)height)); 
     renderer->surface = cairo_image_surface_create (CAIRO_FORMAT_A8, (int)width, (int)height);
   }
Index: plug-ins/pixbuf/pixbuf.c
===================================================================
RCS file: /cvs/gnome/dia/plug-ins/pixbuf/pixbuf.c,v
retrieving revision 1.14
diff -u -r1.14 pixbuf.c
--- plug-ins/pixbuf/pixbuf.c	22 Jan 2006 14:05:04 -0000	1.14
+++ plug-ins/pixbuf/pixbuf.c	7 Feb 2006 20:54:48 -0000
@@ -49,10 +49,10 @@
   GError* error = NULL;
   const char* format = (const char*)user_data;
 
-  rect.left = data->extents.left;
-  rect.top = data->extents.top;
-  rect.right = data->extents.right;
-  rect.bottom = data->extents.bottom;
+  rect.left = data->extents.left-1;
+  rect.top = data->extents.top-1;
+  rect.right = data->extents.right+1;
+  rect.bottom = data->extents.bottom+1;
 
   /* quite arbitrary */
   zoom = 20.0 * data->paper.scaling; 
