Add legend only to barchart and piechart plots, not to scatter plots, as there is currently no usage for it. Fix #337769.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13891 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2006-04-30 23:29:02 +00:00
parent 5e8b7bbc88
commit 6b75ce64fc
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-05-01 Andreas Köhler <andi5.py@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@asynchronous.org> 2006-04-30 Joshua Sled <jsled@asynchronous.org>
Bug#340197: reverse account opening balances when desired. Bug#340197: reverse account opening balances when desired.

View File

@ -217,7 +217,6 @@ create_basic_plot_elements(const char *plot_type_name,
return FALSE; return FALSE;
} }
gog_object_add_by_name(*out_chart, "Plot", GOG_OBJECT(*out_plot) ); gog_object_add_by_name(*out_chart, "Plot", GOG_OBJECT(*out_plot) );
gog_object_add_by_name(*out_chart, "Legend", NULL);
return TRUE; return TRUE;
} }
@ -341,6 +340,7 @@ handle_piechart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d)
{ {
return FALSE; return FALSE;
} }
gog_object_add_by_name(chart, "Legend", NULL);
GOG_STYLED_OBJECT(graph)->style->outline.width = 5; GOG_STYLED_OBJECT(graph)->style->outline.width = 5;
GOG_STYLED_OBJECT(graph)->style->outline.color = RGBA_BLACK; GOG_STYLED_OBJECT(graph)->style->outline.color = RGBA_BLACK;
@ -430,6 +430,7 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d)
if (!create_basic_plot_elements("GogBarColPlot", &graph, &chart, &plot)) { if (!create_basic_plot_elements("GogBarColPlot", &graph, &chart, &plot)) {
return FALSE; return FALSE;
} }
gog_object_add_by_name(chart, "Legend", NULL);
if ( stacked ) { if ( stacked ) {
// when stacked, we want the bars on _top_ of eachother. // when stacked, we want the bars on _top_ of eachother.