Skip to content

Commit ef8174f

Browse files
committed
Fixed channel zoom bug
When double clicking on a channel to set fullscreen, the channel height was set to 0 because the textbook wasn’t set to a correct selected index. This now gets the value from the text, so it should work regardless of how the value was entered.
1 parent a2359eb commit ef8174f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/Processors/LfpDisplayNode/LfpDisplayCanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ void LfpDisplayCanvas::comboBoxChanged(ComboBox* cb)
576576

577577
int LfpDisplayCanvas::getChannelHeight()
578578
{
579-
return spreads[spreadSelection->getSelectedId()-1].getIntValue();
579+
//return spreads[spreadSelection->getSelectedId()-1].getIntValue(); // is not set correctly after the mouse wheel was used to change hieghts
580+
return (int)spreadSelection->getText().getIntValue(); // instead, get value from textbox directly
580581
}
581582

582583

0 commit comments

Comments
 (0)