mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2024-12-27 08:42:48 +01:00
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
|
// Jakub Melka: we must rename the item
|
||||||
QByteArray newSubkeyString = subkeyString;
|
QByteArray newSubkeyString = subkeyString;
|
||||||
PDFInteger k = 0;
|
int k = 0;
|
||||||
while (oldSd->hasKey(newSubkeyString))
|
while (oldSd->hasKey(newSubkeyString))
|
||||||
{
|
{
|
||||||
newSubkeyString = subkeyString + "_" + QByteArray::number(++k);
|
newSubkeyString = subkeyString + "_" + QByteArray::number(++k);
|
||||||
|
@ -184,7 +184,7 @@ void PDFPageContentEditorWidget::updateItemsInListWidget()
|
|||||||
Q_ASSERT(element);
|
Q_ASSERT(element);
|
||||||
|
|
||||||
QListWidgetItem* item = new QListWidgetItem(element->getDescription());
|
QListWidgetItem* item = new QListWidgetItem(element->getDescription());
|
||||||
item->setData(Qt::UserRole, elementId);
|
item->setData(Qt::UserRole, int(elementId));
|
||||||
|
|
||||||
ui->itemsListWidget->addItem(item);
|
ui->itemsListWidget->addItem(item);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user