Code

More progress with preview and opening of files with non-ascii filenames. Still...
authorishmal <ishmal@users.sourceforge.net>
Thu, 22 Mar 2007 07:38:36 +0000 (07:38 +0000)
committerishmal <ishmal@users.sourceforge.net>
Thu, 22 Mar 2007 07:38:36 +0000 (07:38 +0000)
src/ui/dialog/filedialog.cpp

index 818de6f2dcbf179539b429edd9d74b7c886aab04..4de947642fff54f74d5a0d33175b9ecf0ce33dc6 100644 (file)
@@ -246,7 +246,11 @@ bool SVGPreview::setFileName(Glib::ustring &theFileName)
 
     fileName = Glib::filename_to_utf8(fileName);
 
-    SPDocument *doc = sp_document_new (fileName.c_str(), 0);
+    /**
+     * I don't know why passing false to keepalive is bad.  But it
+     * prevents the display of an svg with a non-ascii filename
+     */              
+    SPDocument *doc = sp_document_new (fileName.c_str(), true);
     if (!doc) {
         g_warning("SVGView: error loading document '%s'\n", fileName.c_str());
         return false;