[gnumeric] Avoid creation of unused names. [#650281]



commit 104d873d9c5c61fd9a25de6f7f3a6ca272717cff
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Mon May 16 12:00:21 2011 -0600

    Avoid creation of unused names. [#650281]
    
    2011-05-16  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-expr-entry.c (gee_update_lexer_items): fix flags, we
    	don't wnat to create placeholders here.

 NEWS                              |    1 +
 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    3 ++-
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 9485973..f1bb345 100644
--- a/NEWS
+++ b/NEWS
@@ -53,6 +53,7 @@ Andreas:
 	* Export workbook-scoped named expressions and ranges to ODF.
 	* Improve reading of named expressions from ODF files.
 	* Fix weighted and Spencer moving averages crashes. [#645722]
+	* Avoid creation of unused names. [#650281]
 
 Jean:
 	* Fix cursor position inside a cell edited in a zoomed sheet. [#641709]
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 764fe4e..29437ca 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-16  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* gnumeric-expr-entry.c (gee_update_lexer_items): fix flags, we
+	don't wnat to create placeholders here.
+
 2011-03-24  Morten Welinder <terra gnome org>
 
 	* Release 1.10.14
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index be6506b..6864671 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -908,7 +908,8 @@ gee_update_lexer_items (GnmExprEntry *gee)
 	if (!gee->feedback_disabled && !forced_text) {
 		gee->texpr = gnm_expr_parse_str
 			((str[0] == '=') ? str+1 : str,
-			 &gee->pp, GNM_EXPR_PARSE_DEFAULT,
+			 &gee->pp, GNM_EXPR_PARSE_DEFAULT 
+			 | GNM_EXPR_PARSE_UNKNOWN_NAMES_ARE_STRINGS,
 			 sheet_get_conventions (sheet), NULL);
 	}
 



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