encode the file name correctly

svn path=/trunk/playground/graphics/okular/; revision=552037
remotes/origin/old/work/newpageview
Pino Toscano 20 years ago
parent c9b0e67148
commit 5242e3bd7e
  1. 3
      generators/djvu/kdjvu.cpp

@ -9,6 +9,7 @@
#include "kdjvu.h"
#include <qfile.h>
#include <qlist.h>
#include <qmap.h>
#include <qpainter.h>
@ -219,7 +220,7 @@ bool KDjVu::openFile( const QString & fileName )
closeFile();
// load the document...
d->m_djvu_document = ddjvu_document_create_by_filename( d->m_djvu_cxt, qPrintable( fileName ), true );
d->m_djvu_document = ddjvu_document_create_by_filename( d->m_djvu_cxt, QFile::encodeName( fileName ), true );
if ( !d->m_djvu_document ) return false;
// ...and wait for its loading
wait_for_ddjvu_message( d->m_djvu_cxt, DDJVU_DOCINFO );

Loading…
Cancel
Save