Commit 00cbba3e authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Propertly encode the filename

BUGS: 313700
FIXED-IN: 4.10.0
parent 44b7ff68
......@@ -1806,7 +1806,7 @@ void PDFGenerator::fillViewportFromSourceReference( Okular::DocumentViewport & v
if (!ok) line = -1;
// Use column == -1 for now.
if( synctex_display_query( synctex_scanner, name.toLatin1(), line, -1 ) > 0 )
if( synctex_display_query( synctex_scanner, QFile::encodeName(name), line, -1 ) > 0 )
{
synctex_node_t node;
// For now use the first hit. Could possibly be made smarter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment