diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2007-03-22 07:38:36 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2007-03-22 07:38:36 +0000 |
| commit | 3420f5f1c541a5eeaeda067789a5e6ccd45e8d66 (patch) | |
| tree | 32d8a5bba43e95671657ab647c25829383763879 /src/ui/dialog/filedialog.cpp | |
| parent | drop slideshow from POTFILES.in (diff) | |
| download | inkscape-3420f5f1c541a5eeaeda067789a5e6ccd45e8d66.tar.gz inkscape-3420f5f1c541a5eeaeda067789a5e6ccd45e8d66.zip | |
More progress with preview and opening of files with non-ascii filenames. Still crash on previewing file with an image.
(bzr r2738)
Diffstat (limited to 'src/ui/dialog/filedialog.cpp')
| -rw-r--r-- | src/ui/dialog/filedialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp index 818de6f2d..4de947642 100644 --- a/src/ui/dialog/filedialog.cpp +++ b/src/ui/dialog/filedialog.cpp @@ -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; |
