Skip to content

Commit 2265010

Browse files
committed
Fix progress and debug assertion failure when generating print preview
1 parent 943a81f commit 2265010

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ExtendedTableWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void ExtendedTableWidget::copyMimeData(const QModelIndexList& fromIndices, QMime
637637
// Disable context help button on Windows
638638
progress.setWindowFlags(progress.windowFlags()
639639
& ~Qt::WindowContextHelpButtonHint);
640-
progress.setRange(*rowsInIndexes.begin(), *rowsInIndexes.end());
640+
progress.setRange(*rowsInIndexes.begin(), *rowsInIndexes.rbegin());
641641
progress.setMinimumDuration(2000);
642642

643643
// Iterate over rows x cols checking if the index actually exists when needed, in order

0 commit comments

Comments
 (0)