Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Bug introduced in 0.2.9. STU crashes if default order is reverced.
  • Loading branch information
trufanov-nok committed Feb 27, 2021
1 parent e9464a3 commit 80081eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/ThumbnailSequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,8 @@ ThumbnailSequence::Impl::invalidateAllThumbnails()
// Sort pages in m_itemsInOrder using m_ptrOrderProvider.
if (const PageOrderProvider* order = orderProvider()) {
m_itemsInOrder.sort(
[this](Item const& lhs, Item const& rhs) {
return m_ptrOrderProvider->precedes(
[order](Item const& lhs, Item const& rhs) {
return order->precedes(
lhs.pageId(), lhs.incompleteThumbnail,
rhs.pageId(), rhs.incompleteThumbnail
);
Expand Down

0 comments on commit 80081eb

Please sign in to comment.