reduce the critical section

svn path=/trunk/KDE/kdegraphics/okular/; revision=685277
This commit is contained in:
Pino Toscano 2007-07-08 14:33:50 +00:00
parent 8a31e6f3f0
commit 97f781ff31

View file

@ -647,8 +647,8 @@ Okular::FontInfo::List PDFGenerator::fontsForPage( int /*page*/ )
{
Okular::FontInfo::List list;
docLock.lock();
QList<Poppler::FontInfo> fonts;
docLock.lock();
pdfdoc->scanForFonts( 1, &fonts );
docLock.unlock();