mirror of https://github.com/JakubMelka/PDF4QT.git
Linux compilation fix
This commit is contained in:
parent
86a2b23a14
commit
eb17cdbed1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue