Commit 8a195f77 authored by Morten Welinder's avatar Morten Welinder

Names: fix inter-process paste crash related to sheet-local names.

parent e86ea314
2016-06-29 Morten Welinder <terra@gnome.org>
* src/parse-util.c (std_expr_name_handler): Fix workbook confusion
related to sheet-local names. [#768164]
2016-06-28 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_options_guess_formats): Handle lines
......
......@@ -4,6 +4,7 @@ Morten:
* Fix case issues for database functions.
* Anchor COUNTIF criteria at end too.
* Add tests for COUNTIF.
* Fix inter-process paste crash. [#768164]
--------------------------------------------------------------------------
Gnumeric 1.12.30
......
......@@ -1271,8 +1271,11 @@ std_expr_name_handler (GnmConventionsOut *out, GnmExprName const *name)
}
if (name->optional_scope != NULL) {
if (name->optional_scope->workbook != out->pp->wb) {
char *rel_uri = wb_rel_uri (name->optional_wb_scope, out->pp->wb);
Workbook *out_wb = out->pp->wb
? out->pp->wb
: out->pp->sheet->workbook;
if (name->optional_scope->workbook != out_wb) {
char *rel_uri = wb_rel_uri (name->optional_scope->workbook, out_wb);
g_string_append_c (target, '[');
g_string_append (target, rel_uri);
g_string_append_c (target, ']');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment