diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-12-29 19:53:59 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-12-29 19:53:59 +0000 |
| commit | 2a28157f4c515f823224776d6744dbab539d1a72 (patch) | |
| tree | 117ac1a5498c43ddc576cfa702858658523cb5cd /src/extension/internal/pdfinput/pdf-input.cpp | |
| parent | GDL: drop unused gdl-stock-icons.h (diff) | |
| download | inkscape-2a28157f4c515f823224776d6744dbab539d1a72.tar.gz inkscape-2a28157f4c515f823224776d6744dbab539d1a72.zip | |
fix preview of pdf files with weird characters in filename
Fixed bugs:
- https://launchpad.net/bugs/909783
(bzr r10803)
Diffstat (limited to 'src/extension/internal/pdfinput/pdf-input.cpp')
| -rw-r--r-- | src/extension/internal/pdfinput/pdf-input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp index e083fe1a3..70831bf6a 100644 --- a/src/extension/internal/pdfinput/pdf-input.cpp +++ b/src/extension/internal/pdfinput/pdf-input.cpp @@ -62,7 +62,7 @@ static const gchar * crop_setting_choices[] = { N_("art box") }; -PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gchar *uri) +PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gchar */*uri*/) { #ifdef HAVE_POPPLER_CAIRO _poppler_doc = NULL; @@ -298,7 +298,7 @@ PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gchar *uri) _cairo_surface = NULL; _render_thumb = true; // Create PopplerDocument - gchar *doc_uri = g_filename_to_uri(uri, NULL, NULL); + gchar *doc_uri = g_filename_to_uri(_pdf_doc->getFileName()->getCString(),NULL,NULL); if (doc_uri) { _poppler_doc = poppler_document_new_from_file(doc_uri, NULL, NULL); g_free(doc_uri); |
