Skip to content

Commit f034795

Browse files
authored
Merge pull request #1130 from OpenBCI/1129-fix-time-series-x-axis-label-not-showing-if-last-channel-is-hidden
1129 fix time series x axis label not showing if last channel is hidden
2 parents 0aa4d14 + b2a94b5 commit f034795

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OpenBCI_GUI/W_TimeSeries.pde

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,9 @@ class ChannelBar {
784784
}
785785

786786
private boolean isBottomChannel() {
787-
return channelIndex == nchan - 1;
787+
int numActiveChannels = w_timeSeries.tsChanSelect.activeChan.size();
788+
boolean isLastChannel = channelIndex == w_timeSeries.tsChanSelect.activeChan.get(numActiveChannels - 1);
789+
return isLastChannel;
788790
}
789791

790792
public void mousePressed() {

0 commit comments

Comments
 (0)