diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-04-15 18:33:53 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-04-15 18:33:53 +0000 |
| commit | 4a42a32a27979a3e045c3ce8092b66356211705f (patch) | |
| tree | 5f58b076215a066894f45972ff77ab9e561bc4c9 /src/file.cpp | |
| parent | odg export: some work on gradients (diff) | |
| download | inkscape-4a42a32a27979a3e045c3ce8092b66356211705f.tar.gz inkscape-4a42a32a27979a3e045c3ce8092b66356211705f.zip | |
Fix for Bug #503712 (Personal default template not used) by Slagvi.
(bzr r12277)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index 453ddb546..5b4110253 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -157,8 +157,8 @@ Glib::ustring sp_file_default_template_uri() baseNames.push_back("default.svg"); gchar *foundTemplate = 0; - for (std::list<gchar const*>::iterator nameIt = baseNames.begin(); (nameIt != baseNames.end()) && !foundTemplate; ++nameIt) { - for (std::list<gchar *>::iterator it = sources.begin(); (it != sources.end()) && !foundTemplate; ++it) { + for (std::list<gchar *>::iterator it = sources.begin(); (it != sources.end()) && !foundTemplate; ++it) { + for (std::list<gchar const*>::iterator nameIt = baseNames.begin(); (nameIt != baseNames.end()) && !foundTemplate; ++nameIt) { gchar *dirname = *it; if ( Inkscape::IO::file_test( dirname, (GFileTest)(G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR) ) ) { |
