Skip to content

Commit 5088cca

Browse files
committed
SpikeViewer: fix loading range and history parameters
1 parent 85a139f commit 5088cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/SpikeViewer/SpikeDisplayCanvas.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ void SpikeDisplayCanvas::loadSpikeDisplaySettingsFromXml (XmlElement* xmlNode)
331331
spikeDisplay->invertSpikes (xmlNode->getBoolAttribute ("InvertSpikes"));
332332
invertSpikesButton->setToggleState (xmlNode->getBoolAttribute ("InvertSpikes"), dontSendNotification);
333333
lockThresholdsButton->setToggleState (xmlNode->getBoolAttribute ("LockThresholds"), sendNotification);
334-
rangeSelection->setSelectedId (xmlNode->getIntAttribute ("Range"), dontSendNotification);
335-
historySelection->setSelectedId (xmlNode->getIntAttribute ("History"), sendNotification);
334+
rangeSelection->setSelectedId (xmlNode->getIntAttribute ("Range", ranges[2]), dontSendNotification);
335+
historySelection->setSelectedId (xmlNode->getIntAttribute ("History", histories[1]), sendNotification);
336336

337337
int plotIndex = -1;
338338

0 commit comments

Comments
 (0)