Skip to content

Commit 56125ed

Browse files
committed
[Fix] Pattern tab: r22668 broke the Toggle Follow Song shortcut (https://bugs.openmpt.org/view.php?id=1867)
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22976 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent b03f7f1 commit 56125ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mptrack/Ctrl_pat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,10 @@ LRESULT CCtrlPatterns::OnModCtrlMsg(WPARAM wParam, LPARAM lParam)
504504
case CTRLMSG_PAT_FOLLOWSONG:
505505
// parameters: 0 = turn off, 1 = toggle
506506
{
507-
UINT state = FALSE;
507+
UINT state = BST_UNCHECKED;
508508
if(lParam == 1) // toggle
509509
{
510-
state = IsDlgButtonChecked(IDC_PATTERN_FOLLOWSONG) != BST_UNCHECKED;
510+
state = (IsDlgButtonChecked(IDC_PATTERN_FOLLOWSONG) == BST_UNCHECKED) ? BST_CHECKED : BST_UNCHECKED;
511511
}
512512
CheckDlgButton(IDC_PATTERN_FOLLOWSONG, state);
513513
OnFollowSong();

0 commit comments

Comments
 (0)