[gnumeric] ADDRESS: fix crash.



commit 6d5c8d56dd28f752cd23e5bd170ba085a78ec700
Author: Morten Welinder <terra gnome org>
Date:   Sat Jan 3 10:04:38 2015 -0500

    ADDRESS: fix crash.

 plugins/fn-lookup/ChangeLog   |    5 +++++
 plugins/fn-lookup/functions.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/fn-lookup/ChangeLog b/plugins/fn-lookup/ChangeLog
index 7867dff..281f786 100644
--- a/plugins/fn-lookup/ChangeLog
+++ b/plugins/fn-lookup/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-03  Morten Welinder  <terra gnome org>
+
+       * functions.c (gnumeric_address): Clear sheet_name when defaulting
+       to evaluating sheet.
+
 2014-09-25  Morten Welinder <terra gnome org>
 
        * Release 1.12.18
diff --git a/plugins/fn-lookup/functions.c b/plugins/fn-lookup/functions.c
index 9b2fafc..a685116 100644
--- a/plugins/fn-lookup/functions.c
+++ b/plugins/fn-lookup/functions.c
@@ -859,6 +859,7 @@ gnumeric_address (GnmFuncEvalInfo *ei, GnmValue const * const *args)
                if (!sheet) {
                        /* Use evaluation sheet if named sheet does not exist.  */
                        sheet = ei->pos->sheet;
+                       sheet_name = NULL;
                }
        } else
                sheet = ei->pos->sheet;


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