Skip to content

Commit 0408beb

Browse files
authored
Merge pull request #210 from tne-lab/setChannelSelectionState-fix
Make setChannelSelectionState consistent with getChannelSelectionState
2 parents e2630b9 + a3555fc commit 0408beb

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Source/Processors/Editors/GenericEditor.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ void GenericEditor::update()
550550
drawerButton->setVisible(true);
551551
}
552552

553-
553+
554554

555555
updateVisualizer(); // does nothing unless this method
556556
// has been implemented
@@ -649,9 +649,9 @@ void GenericEditor::setChannelSelectionState(int chan, bool p, bool r, bool a)
649649
{
650650
if (!isSplitOrMerge)
651651
{
652-
channelSelector->setParamStatus(chan+1, p);
653-
channelSelector->setRecordStatus(chan+1, r);
654-
channelSelector->setAudioStatus(chan+1, a);
652+
channelSelector->setParamStatus(chan, p);
653+
channelSelector->setRecordStatus(chan, r);
654+
channelSelector->setAudioStatus(chan, a);
655655
}
656656
}
657657

@@ -1438,4 +1438,3 @@ void ThresholdSlider::setValues(Array<double> v)
14381438
{
14391439
valueArray = v;
14401440
}
1441-

Source/Processors/GenericProcessor/GenericProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ void GenericProcessor::loadChannelParametersFromXml(XmlElement* channelInfo, Inf
10821082
{
10831083
if (subNode->hasTagName("SELECTIONSTATE"))
10841084
{
1085-
getEditor()->setChannelSelectionState(channelNum - 1,
1085+
getEditor()->setChannelSelectionState(channelNum,
10861086
subNode->getBoolAttribute("param"),
10871087
subNode->getBoolAttribute("record"),
10881088
subNode->getBoolAttribute("audio"));

0 commit comments

Comments
 (0)