Commit fd1c49c1 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Only close the output handle if it is not already closed. (msole closes

2005-08-17  Morten Welinder  <terra@gnome.org>

	* src/workbook-view.c (wbv_save_to_uri): Only close the output
	handle if it is not already closed.  (msole closes its sink.)
parent 620fbf66
2005-08-17 Morten Welinder <terra@gnome.org>
* src/workbook-view.c (wbv_save_to_uri): Only close the output
handle if it is not already closed. (msole closes its sink.)
2005-08-15 Morten Welinder <terra@gnome.org>
* configure.in: Post release bump
......
2005-08-17 Morten Welinder <terra@gnome.org>
* src/workbook-view.c (wbv_save_to_uri): Only close the output
handle if it is not already closed. (msole closes its sink.)
2005-08-15 Morten Welinder <terra@gnome.org>
* configure.in: Post release bump
......
......@@ -624,7 +624,8 @@ wbv_save_to_uri (WorkbookView *wbv, GOFileSaver const *fs,
g_printerr ("Writing %s\n", uri);
go_file_saver_save (fs, io_context, wbv, output);
gsf_output_close (output);
if (!gsf_output_is_closed (output))
gsf_output_close (output);
save_err = gsf_output_error (output);
if (save_err) {
msg = g_strdup (save_err->message);
......
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