Added code to handle converting Win32's short file names to long file names.
authordarco <darco@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Nov 2005 21:53:12 +0000 (21:53 +0000)
committerdarco <darco@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Nov 2005 21:53:12 +0000 (21:53 +0000)
git-svn-id: http://svn.voria.com/code@57 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index e726bf6..26b923e 100644 (file)
@@ -1927,6 +1927,12 @@ App::open(std::string filename)
 bool
 App::open_as(std::string filename,std::string as)
 {
+#ifdef WIN32
+    char long_name[1024];
+    if(GetLongPathName(as.c_str(),long_name,sizeof(long_name)));
+    as=long_name;
+#endif
+
        try
        {
                OneMoment one_moment;