[Gnucash-changes] r13891 - gnucash/trunk - Add legend only to barchart and piechart plots, not to scatter plots, as there is currently no usage for it. Fix #337769.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Apr 30 19:29:03 EDT 2006


Author: andi5
Date: 2006-04-30 19:29:02 -0400 (Sun, 30 Apr 2006)
New Revision: 13891
Trac: http://svn.gnucash.org/trac/changeset/13891

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
Log:
Add legend only to barchart and piechart plots, not to scatter plots, as there is currently no usage for it. Fix #337769.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-30 19:28:24 UTC (rev 13890)
+++ gnucash/trunk/ChangeLog	2006-04-30 23:29:02 UTC (rev 13891)
@@ -1,3 +1,9 @@
+2006-05-01  Andreas Köhler  <andi5.py at gmx.net>
+
+	* src/gnome-utils/gnc-html-graph-gog.c: Add legend only to
+	  barchart and piechart plots, not to scatter plots, as there is
+	  currently no usage for it. Fix #337769.
+
 2006-04-30  Joshua Sled  <jsled at asynchronous.org>
 
 	Bug#340197: reverse account opening balances when desired.

Modified: gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c	2006-04-30 19:28:24 UTC (rev 13890)
+++ gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c	2006-04-30 23:29:02 UTC (rev 13891)
@@ -217,7 +217,6 @@
     return FALSE;
   }
   gog_object_add_by_name(*out_chart, "Plot", GOG_OBJECT(*out_plot) );
-  gog_object_add_by_name(*out_chart, "Legend", NULL);
   return TRUE;
 }
 
@@ -341,6 +340,7 @@
   {
     return FALSE;
   }
+  gog_object_add_by_name(chart, "Legend", NULL);
 
   GOG_STYLED_OBJECT(graph)->style->outline.width = 5;
   GOG_STYLED_OBJECT(graph)->style->outline.color = RGBA_BLACK;
@@ -430,6 +430,7 @@
   if (!create_basic_plot_elements("GogBarColPlot", &graph, &chart, &plot)) {
     return FALSE;
   }
+  gog_object_add_by_name(chart, "Legend", NULL);
 
   if ( stacked ) {
     // when stacked, we want the bars on _top_ of eachother.



More information about the gnucash-changes mailing list