Saving a document (I'm going to call them documents because I don't know what else...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 22:39:21 +0000 (22:39 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 22:39:21 +0000 (22:39 +0000)
git-svn-id: http://svn.voria.com/code@700 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/instance.cpp

index 190eafb..7d9900d 100644 (file)
@@ -265,7 +265,8 @@ studio::Instance::dialog_save_as()
                if(find(filename.begin(),filename.end(),'*')!=filename.end())
                        continue;
 
-               if(find(filename.begin(),filename.end(),'.')==filename.end())
+               std::string base = basename(filename);
+               if(find(base.begin(),base.end(),'.')==base.end())
                        filename+=".sifz";
 
                try