[dia] [warningectomy] Remove unused variable and initialize another



commit 525fd53afc38f6c7211d5fa6bfcd90323405d224
Author: Hans Breuer <hans breuer org>
Date:   Fri Apr 22 12:28:48 2011 +0200

    [warningectomy] Remove unused variable and initialize another

 lib/diagramdata.c                   |    1 -
 plug-ins/metapost/render_metapost.c |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/diagramdata.c b/lib/diagramdata.c
index 0e05c6d..a49316e 100644
--- a/lib/diagramdata.c
+++ b/lib/diagramdata.c
@@ -207,7 +207,6 @@ DiagramData *
 diagram_data_clone_selected (DiagramData *data)
 {
   DiagramData *clone;
-  guint i;
   Layer *dest_layer;
   GList *sorted;
 
diff --git a/plug-ins/metapost/render_metapost.c b/plug-ins/metapost/render_metapost.c
index d5ac028..6ca0d6b 100644
--- a/plug-ins/metapost/render_metapost.c
+++ b/plug-ins/metapost/render_metapost.c
@@ -1246,11 +1246,13 @@ export_metapost(DiagramData *data, const gchar *filename,
     initial_color.red=0.;
     initial_color.green=0.;
     initial_color.blue=0.;
+    initial_color.alpha=1.;
     set_line_color(renderer,&initial_color);
     
     initial_color.red=1.;
     initial_color.green=1.;
     initial_color.blue=1.;
+    initial_color.alpha=1.;
     set_fill_color(renderer,&initial_color);
 
     data_render(data, DIA_RENDERER(renderer), NULL, NULL, NULL);



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