Code

fix 1574873
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 22:08:37 +0000 (22:08 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Oct 2006 22:08:37 +0000 (22:08 +0000)
src/interface.cpp

index 17248a206bd81f3dfcc894b08ed9f764eef81d28..99f6c394fb2958f5c01e91aae1a5168bda772164 100644 (file)
@@ -691,7 +691,7 @@ sp_menu_append_new_templates(GtkWidget *menu, Inkscape::UI::View::View *view)
 
             if (dir) {
                 for (gchar const *file = g_dir_read_name(dir); file != NULL; file = g_dir_read_name(dir)) {
-                    if (!g_str_has_suffix(file, ".svg"))
+                    if (!g_str_has_suffix(file, ".svg") && !g_str_has_suffix(file, ".svgz"))
                         continue; // skip non-svg files
 
                     gchar *basename = g_path_get_basename(file);