Skip to content

Commit 1a49e0d

Browse files
committed
Fix handling of invalid spike channels in SpikeDisplay
1 parent 8c64539 commit 1a49e0d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Plugins/BasicSpikeDisplay/SpikeDisplayNode/SpikeDisplayCanvas.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ void SpikeDisplayCanvas::saveCustomParametersToXml(XmlElement* xml)
262262

263263
plotNode->setAttribute("isMonitored", spikeDisplay->getMonitorStateForPlot(i));
264264

265-
for (int j = 0; j < spikeDisplay->getNumChannelsForPlot(i); j++)
265+
for (int j = 0; j < spikeDisplay->getNumChannelsForPlot(spikePlotIdx); j++)
266266
{
267267
XmlElement* axisNode = plotNode->createNewChildElement("AXIS");
268-
axisNode->setAttribute("thresh",spikeDisplay->getThresholdForWaveAxis(i,j));
269-
axisNode->setAttribute("range",spikeDisplay->getRangeForWaveAxis(i,j));
268+
axisNode->setAttribute("thresh",spikeDisplay->getThresholdForWaveAxis(spikePlotIdx,j));
269+
axisNode->setAttribute("range",spikeDisplay->getRangeForWaveAxis(spikePlotIdx,j));
270270
}
271271
}
272272

0 commit comments

Comments
 (0)