[gnumeric] New-from-template: fix crash.



commit d63267065e7f7392dd2348eceaf2c97abafa12a2
Author: Morten Welinder <terra gnome org>
Date:   Sun Jun 28 10:26:46 2009 -0400

    New-from-template: fix crash.

 ChangeLog      |    5 +++++
 NEWS           |    1 +
 src/gui-file.c |    1 -
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b1553fa..24f061a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-28  Morten Welinder  <terra gnome org>
+
+	* src/gui-file.c (gui_file_template): Do not set a NULL uri here.
+	Lots of code assumes we have a uri.
+
 2009-06-25  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* component/gnumeric.c (go_gnm_component_edit): call 
diff --git a/NEWS b/NEWS
index d8604dc..01f6a67 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Andreas:
 Morten:
 	* Make SUMIF/COUNTIF and the D* functions understand pattern. [#586215]
 	* Make dialogs remember their sizes and positions.
+	* Fix crash with new-from-template.
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.9
diff --git a/src/gui-file.c b/src/gui-file.c
index 3ba0210..c165e7b 100644
--- a/src/gui-file.c
+++ b/src/gui-file.c
@@ -160,7 +160,6 @@ gui_file_template (WBCGtk *wbcg, char const *uri)
 
 	if (wbv != NULL) {
 		Workbook *wb = wb_view_get_workbook (wbv);
-		go_doc_set_uri (GO_DOC (wb), NULL);
 		workbook_set_saveinfo (wb, FILE_FL_NEW, NULL);
 		gui_wb_view_show (wbcg, wbv);
 		return TRUE;



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