[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/okular/generators/poppler
From: Pino Toscano <toscano.pino () tiscali ! it>
Date: 2007-09-15 21:55:12
Message-ID: 1189893312.965419.12548.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 712976 by pino:
reduce the locked section a bit
M +2 -1 generator_pdf.cpp
--- trunk/KDE/kdegraphics/okular/generators/poppler/generator_pdf.cpp #712975:712976
@@ -881,7 +881,6 @@
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 @@
psConverter->setStrictMargins(strictMargins);
psConverter->setForceRasterize(forceRasterize);
psConverter->setTitle(pstitle);
+ userMutex()->lock();
if (psConverter->convert())
{
userMutex()->unlock();
@@ -928,6 +928,7 @@
{
delete psConverter;
#else
+ userMutex()->lock();
if (pdfdoc->print(tempfilename, pageList, 72, 72, 0, width, height))
{
userMutex()->unlock();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic