[Scummvm-git-logs] scummvm master -> 254b3022f57a6d7a6b281ff47db687f49e5a5393
sev-
noreply at scummvm.org
Tue Jun 27 22:05:33 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
254b3022f5 DIRECTOR: Gracefully process incorrect grouped list configuration
Commit: 254b3022f57a6d7a6b281ff47db687f49e5a5393
https://github.com/scummvm/scummvm/commit/254b3022f57a6d7a6b281ff47db687f49e5a5393
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-06-28T00:05:19+02:00
Commit Message:
DIRECTOR: Gracefully process incorrect grouped list configuration
Changed paths:
gui/widgets/groupedlist.cpp
diff --git a/gui/widgets/groupedlist.cpp b/gui/widgets/groupedlist.cpp
index bc19db1d747..3b334f10ee9 100644
--- a/gui/widgets/groupedlist.cpp
+++ b/gui/widgets/groupedlist.cpp
@@ -206,7 +206,8 @@ void GroupedListWidget::setSelected(int item) {
item = filteredItem;
}
- assert(item >= -1 && item < (int)_list.size());
+ if (item < -1 || item >= (int)_list.size())
+ return;
// We only have to do something if the widget is enabled and the selection actually changes
if (isEnabled() && (_selectedItem == -1 || _listIndex[_selectedItem] != item)) {
More information about the Scummvm-git-logs
mailing list