[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kitinerary-workbench] src: Use the right index to access images
From: Volker Krause <null () kde ! org>
Date: 2018-09-21 15:34:18
Message-ID: E1g3NRi-00059Q-C6 () code ! kde ! org
[Download RAW message or body]
Git commit 4308ae0cedc846a93b097a51411a5d528a125297 by Volker Krause.
Committed on 21/09/2018 at 15:34.
Pushed by vkrause into branch 'master'.
Use the right index to access images
M +1 -1 src/mainwindow.cpp
https://commits.kde.org/kitinerary-workbench/4308ae0cedc846a93b097a51411a5d528a125297
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e85817e..6ea71a0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -258,7 +258,7 @@ void MainWindow::sourceChanged()
const auto page = m_pdfDoc->page(i);
for (int j = 0; j < page.imageCount(); ++j) {
auto imgItem = new QStandardItem;
- imgItem->setData(page.image(i).image(), Qt::DecorationRole);
+ imgItem->setData(page.image(j).image(), Qt::DecorationRole);
pageItem->appendRow(imgItem);
}
m_imageModel->appendRow(pageItem);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic