read correctly the destination file name for non-grouped items in pdfsync links

svn path=/trunk/KDE/kdegraphics/okular/; revision=942965
remotes/origin/KDE/4.3
Pino Toscano 17 years ago
parent 42afd676d9
commit a0028d494d
  1. 6
      generators/poppler/generator_pdf.cpp

@ -1300,8 +1300,8 @@ void PDFGenerator::loadPdfSync( const QString & filePath, QVector<Okular::Page*>
return;
QTextStream ts( &f );
// first row: core name of the pdf output - we skip it
ts.readLine();
// first row: core name of the pdf output
const QString coreName = ts.readLine();
// second row: version string, in the form 'Version %u'
QString versionstr = ts.readLine();
QRegExp versionre( "Version (\\d+)" );
@ -1405,7 +1405,7 @@ void PDFGenerator::loadPdfSync( const QString & filePath, QVector<Okular::Page*>
}
else
{
file = filePath;
file = coreName + QLatin1String( ".tex" );
}
Okular::SourceReference * sourceRef = new Okular::SourceReference( file, pt.row, pt.column );
refRects[ pt.page ].append( new Okular::SourceRefObjectRect( p, sourceRef ) );

Loading…
Cancel
Save