mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-28 19:28:38 +00:00
reduce the locked section a bit
svn path=/trunk/KDE/kdegraphics/okular/; revision=712976
This commit is contained in:
parent
2a258a92f9
commit
ac970f2d6c
1 changed files with 2 additions and 1 deletions
|
@ -881,7 +881,6 @@ bool PDFGenerator::print( KPrinter& printer )
|
|||
if (!printer.previewOnly()) pageList = printer.pageList();
|
||||
else for(int i = 1; i <= pdfdoc->numPages(); i++) pageList.push_back(i);
|
||||
|
||||
userMutex()->lock();
|
||||
// TODO rotation
|
||||
#ifdef HAVE_POPPLER_0_6
|
||||
double xScale = ((double)width - (double)marginLeft - (double)marginRight) / (double)width;
|
||||
|
@ -918,6 +917,7 @@ bool PDFGenerator::print( KPrinter& printer )
|
|||
psConverter->setStrictMargins(strictMargins);
|
||||
psConverter->setForceRasterize(forceRasterize);
|
||||
psConverter->setTitle(pstitle);
|
||||
userMutex()->lock();
|
||||
if (psConverter->convert())
|
||||
{
|
||||
userMutex()->unlock();
|
||||
|
@ -928,6 +928,7 @@ bool PDFGenerator::print( KPrinter& printer )
|
|||
{
|
||||
delete psConverter;
|
||||
#else
|
||||
userMutex()->lock();
|
||||
if (pdfdoc->print(tempfilename, pageList, 72, 72, 0, width, height))
|
||||
{
|
||||
userMutex()->unlock();
|
||||
|
|
Loading…
Reference in a new issue