@@ -37,7 +37,7 @@ LfpDisplayEditor::LfpDisplayEditor(GenericProcessor* parentNode, bool useDefault
3737
3838 subprocessorSelection = new ComboBox (" Subprocessor sample rate" );
3939// subprocessorSelection->setBounds(subprocessorSelectionLabel->getX()+5, subprocessorSelectionLabel->getBottom(), 60, 22);
40- subprocessorSelection->setBounds (10 , 30 , 50 , 22 );
40+ subprocessorSelection->setBounds (10 , 30 , 55 , 22 );
4141 subprocessorSelection->addListener (this );
4242 addAndMakeVisible (subprocessorSelection);
4343
@@ -148,18 +148,17 @@ void LfpDisplayEditor::updateSubprocessorSelectorOptions()
148148
149149 subprocessorSampleRateLabel->setText (sampleRateLabelText, dontSendNotification);
150150 // setCanvasDrawableSubprocessor(defaultSubprocessor);
151- }
152- else
153- {
154- subprocessorSelection->addItem (" None" , 1 );
155- subprocessorSelection->setSelectedId (1 , dontSendNotification);
156-
157- String sampleRateLabelText = " Sample Rate: <not available>" ;
158- subprocessorSampleRateLabel->setText (sampleRateLabelText, dontSendNotification);
159- // setCanvasDrawableSubprocessor(-1);
160151
152+ return ;
161153 }
162154 }
155+
156+ subprocessorSelection->addItem (" None" , 1 );
157+ subprocessorSelection->setSelectedId (1 , dontSendNotification);
158+
159+ String sampleRateLabelText = " Sample Rate: <not available>" ;
160+ subprocessorSampleRateLabel->setText (sampleRateLabelText, dontSendNotification);
161+ // setCanvasDrawableSubprocessor(-1);
163162}
164163
165164void LfpDisplayEditor::setCanvasDrawableSubprocessor (int index)
@@ -206,7 +205,7 @@ void LfpDisplayEditor::loadVisualizerParameters(XmlElement* xml)
206205 {
207206 std::cout << " LfpDisplay found " << xmlNode->getIntAttribute (" SubprocessorId" ) << std::endl;
208207 defaultSubprocessor = xmlNode->getIntAttribute (" SubprocessorId" );
209- subprocessorSelection->setSelectedItemIndex (defaultSubprocessor + 1 , sendNotification);
208+ subprocessorSelection->setSelectedItemIndex (defaultSubprocessor, sendNotification);
210209
211210 }
212211 }
0 commit comments