diff --git a/Pdf4QtLib/sources/pdfdocumentbuilder.cpp b/Pdf4QtLib/sources/pdfdocumentbuilder.cpp index 13266f1..ad65d04 100644 --- a/Pdf4QtLib/sources/pdfdocumentbuilder.cpp +++ b/Pdf4QtLib/sources/pdfdocumentbuilder.cpp @@ -907,7 +907,7 @@ void PDFPageContentStreamBuilder::replaceResources(PDFObjectReference contentStr { // Jakub Melka: we must rename the item QByteArray newSubkeyString = subkeyString; - PDFInteger k = 0; + int k = 0; while (oldSd->hasKey(newSubkeyString)) { newSubkeyString = subkeyString + "_" + QByteArray::number(++k); diff --git a/Pdf4QtLib/sources/pdfpagecontenteditorwidget.cpp b/Pdf4QtLib/sources/pdfpagecontenteditorwidget.cpp index 471aae8..ed0bfcc 100644 --- a/Pdf4QtLib/sources/pdfpagecontenteditorwidget.cpp +++ b/Pdf4QtLib/sources/pdfpagecontenteditorwidget.cpp @@ -184,7 +184,7 @@ void PDFPageContentEditorWidget::updateItemsInListWidget() Q_ASSERT(element); QListWidgetItem* item = new QListWidgetItem(element->getDescription()); - item->setData(Qt::UserRole, elementId); + item->setData(Qt::UserRole, int(elementId)); ui->itemsListWidget->addItem(item); }