diff options
Diffstat (limited to 'src/gui/widgets/extendedlistbox.cpp')
-rw-r--r-- | src/gui/widgets/extendedlistbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp index 036c42ac3..b19e18fc8 100644 --- a/src/gui/widgets/extendedlistbox.cpp +++ b/src/gui/widgets/extendedlistbox.cpp @@ -141,9 +141,9 @@ void ExtendedListBox::draw(Graphics *const graphics) for (size_t f = 0; f < itemsSz; ++f) { const ExtendedListBoxItem &item = mListItems[f]; - const int row1 = item.row; if (item.image) { + const int row1 = item.row; const Image *const image = model->getImageAt(row1); if (image != nullptr) { @@ -201,9 +201,9 @@ void ExtendedListBox::draw(Graphics *const graphics) for (size_t f = 0; f < selSz; ++f) { const ExtendedListBoxItem &item = mSelectedItems[f]; - const int row1 = item.row; if (item.image) { + const int row1 = item.row; const Image *const image = model->getImageAt(row1); if (image != nullptr) { |