[gnumeric] During printing when checking a cell value to be an error make sure it is up-to-date
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] During printing when checking a cell value to be an error make sure it is up-to-date
- Date: Thu, 28 Jul 2011 17:28:13 +0000 (UTC)
commit ca3838821844f22ba514a7827702cb0f384b169e
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Thu Jul 28 11:15:29 2011 -0600
During printing when checking a cell value to be an error make sure it is up-to-date
2011-07-28 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/print-cell.c (print_cell_gtk): be sure that the value is
uptodate
ChangeLog | 5 +++++
src/print-cell.c | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a3becee..f3be344 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-28 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * src/print-cell.c (print_cell_gtk): be sure that the value is
+ uptodate
+
2011-07-27 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/xml-sax-read.c (xml_sax_print_comments): new
diff --git a/src/print-cell.c b/src/print-cell.c
index 97028db..7033a9b 100644
--- a/src/print-cell.c
+++ b/src/print-cell.c
@@ -67,7 +67,12 @@ print_cell_gtk (GnmCell const *cell,
double const scale_h = 72. / gnm_app_display_dpi_get (TRUE);
double const scale_v = 72. / gnm_app_display_dpi_get (FALSE);
- gboolean cell_shows_error = (gnm_cell_is_error (cell) != NULL)
+ gboolean cell_shows_error;
+
+ if (cell->base.flags & GNM_CELL_HAS_NEW_EXPR)
+ gnm_cell_eval ((GnmCell *)cell);
+
+ cell_shows_error = (gnm_cell_is_error (cell) != NULL)
&& !(gnm_cell_has_expr (cell) && sheet->display_formulas);
if (cell_shows_error && pinfo->error_display == PRINT_ERRORS_AS_BLANK)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]