summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c74d7ac)
raw | patch | inline | side by side (parent: c74d7ac)
author | ishmal <ishmal@users.sourceforge.net> | |
Mon, 24 Jul 2006 22:41:47 +0000 (22:41 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Mon, 24 Jul 2006 22:41:47 +0000 (22:41 +0000) |
src/file.cpp | patch | blob | history |
diff --git a/src/file.cpp b/src/file.cpp
index a9c9184f69f7f165211d4eda9f6c0aa9e7808cc4..6154fb97daac9cf22ae78066802d824927cfbffb 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
SPDesktop*
sp_file_new(const Glib::ustring &templ)
{
- SPDocument *doc = sp_document_new(templ.c_str(), TRUE, true);
+ char *templName = NULL;
+ if (templ.size()>0)
+ templName = (char *)templ.c_str();
+ SPDocument *doc = sp_document_new(templName, TRUE, true);
g_return_val_if_fail(doc != NULL, NULL);
SPDesktop *dt;
sources.pop_front();
}
- return sp_file_new(NULL);
+ return sp_file_new("");
}