Home
Phabricator
Search
Log In
Paste
P79
Masterwork From Distant Lands
Active
Public
Actions
Authored by
dkazakov
on Jul 8 2017, 2:08 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/plugins/impex/pdf/kis_pdf_import.cpp b/plugins/impex/pdf/kis_pdf_import.cpp
index 9953931..f85d602 100644
--- a/plugins/impex/pdf/kis_pdf_import.cpp
+++ b/plugins/impex/pdf/kis_pdf_import.cpp
@@ -115,8 +115,6 @@ KisPDFImport::ConversionStatus KisPDFImport::convert(KisDocument *document, QIOD
// create a layer
QList<int> pages = wdg->pages();
- QPointer<KoUpdater> loadUpdater = document->progressUpdater()->startSubtask(1, "load");
- loadUpdater->setRange(0, pages.count());
for (QList<int>::const_iterator it = pages.constBegin(); it != pages.constEnd(); ++it) {
KisPaintLayer* layer = new KisPaintLayer(image.data(),
i18n("Page %1", *it + 1),
@@ -130,7 +128,7 @@ KisPDFImport::ConversionStatus KisPDFImport::convert(KisDocument *document, QIOD
delete page;
image->addNode(layer, image->rootLayer(), 0);
- loadUpdater->setProgress(*it + 1);
+ setProgress(qreal(*it + 1) * 100 / pages.count());
}
document->setCurrentImage(image);
dkazakov
edited the content of this paste.
(Show Details)
Jul 8 2017, 2:08 PM
dkazakov
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
dkazakov
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment