Commit 2fc499eb authored by Chyla Zbigniew's avatar Chyla Zbigniew

Slight modification of the previous patch.


* src/workbook.c (workbook_new): Slight modification of the previous
patch.
parent 720befdb
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
......
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
......
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
......
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
......
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
......
......@@ -29,7 +29,7 @@
#include "history.h"
#include "commands.h"
#include "main.h"
#include "file-priv.h"
#include "file.h"
#include "io-context.h"
#include "gutils.h"
......@@ -453,8 +453,12 @@ workbook_new (void)
gboolean is_unique;
Workbook *wb;
GnumFileSaver *def_save = get_default_file_saver ();
char const *extension = (def_save && def_save->extension)
? def_save->extension : "gnumeric";
char const *extension = NULL;
if (def_save != NULL)
extension = gnum_file_saver_get_extension (def_save);
if (extension == NULL)
extension = "gnumeric";
wb = gtk_type_new (workbook_get_type ());
......
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