[gnumeric] Graphs: fix problem with labels.



commit fcd4212f6af05934081bd7efd0950cb22e1ff17d
Author: Morten Welinder <terra gnome org>
Date:   Tue Mar 2 11:10:47 2010 -0500

    Graphs: fix problem with labels.

 ChangeLog   |    5 +++++
 NEWS        |    1 +
 src/graph.c |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c7eebed..6ea86d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-02  Morten Welinder  <terra gnome org>
+
+	* src/graph.c (render_val): For cells, get the right format unless
+	overridden.  Fixes #611362.
+
 2010-02-28  Morten Welinder  <terra gnome org>
 
 	* src/commands.c (cmd_solver): Set cmd.sheet.  Fixes #611406.
diff --git a/NEWS b/NEWS
index 2165fb2..01e53be 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Morten:
 	* Fix ODF read problem.  [#610178]
 	* Fix rendering problem with iterated evaluation.
 	* Fix solver undo problem.  [#611406]
+	* Fix graph label problem.  [#611362]
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.0
diff --git a/src/graph.c b/src/graph.c
index ccbf510..48c93ad 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -101,6 +101,9 @@ render_val (GnmValue const *v, int i, int j,
 			return NULL;
 		gnm_cell_eval (cell);
 		v = cell->value;
+
+		if (fmt == NULL)
+			fmt = gnm_cell_get_format (cell);
 	} else if (v->type == VALUE_ARRAY)
 		v = value_area_get_x_y (v, i, j, ep);
 



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