Skip to content

Commit

Permalink
Merge pull request #613 from reupen/fix-groups-prefs-crash
Browse files Browse the repository at this point in the history
Fix crash when clicking Move down in playlist view preferences groups list
  • Loading branch information
reupen authored Oct 16, 2022
2 parents 2a6a964 + feabb5b commit baaf713
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change log

## Development version
## 2.0.0-alpha.4

### Features

Expand All @@ -17,7 +17,11 @@

### Bug fixes

- Flickering or flashing when switching tabs in the Tab stack panel was reduced.
- A crash, when clicking Move down on the Grouping tab in playlist view
preferences without a group selected, was fixed.
[[#613](https://github.com/reupen/columns_ui/pull/613)]

- Flickering when switching tabs in the Tab stack panel was reduced.
[[#610](https://github.com/reupen/columns_ui/pull/610)]

## 2.0.0-alpha.3
Expand Down
2 changes: 1 addition & 1 deletion foo_ui_columns/ng_playlist/ng_playlist_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ BOOL GroupsPreferencesTab::ConfigProc(HWND wnd, UINT msg, WPARAM wp, LPARAM lp)
const auto index = m_groups_list_view.get_selected_item_single();
auto& groups = g_groups.get_groups();

if (index + 1 >= groups.size())
if (index == std::numeric_limits<size_t>::max() || index + 1 >= groups.size())
break;

g_groups.swap(index, index + 1);
Expand Down

0 comments on commit baaf713

Please sign in to comment.