Fixed command line PDF export to use path

presentation
Wilson Brenna 10 years ago
parent d162281302
commit d27ff6deff
  1. 2
      src/control/XournalMain.cpp

@ -186,7 +186,7 @@ int XournalMain::exportPdf(const char* input, const char* output)
GFile* file = g_file_new_for_commandline_arg(output);
PdfExport pdf(doc, NULL);
if (!pdf.createPdf(g_file_get_uri(file)))
if (!pdf.createPdf(g_file_get_path(file)))
{
cerr << pdf.getLastError() << endl;

Loading…
Cancel
Save