Skip to content

Commit 637b61b

Browse files
committed
Fix another race conditions
1 parent c341775 commit 637b61b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Plugins/SpikeSorter/SpikeSorterCanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ void WaveformAxes::plotSpike(SorterSpikePtr s, Graphics& g)
10751075
g.setColour(Colour(s->color[0], s->color[1], s->color[2]));
10761076
//g.setColour(Colours::pink);
10771077
//compute the spatial width for each waveform sample
1078-
float dx = getWidth()/float(spikeBuffer[0]->getChannel()->getTotalSamples());
1078+
float dx = getWidth()/float(s->getChannel()->getTotalSamples());
10791079

10801080
/*
10811081
float align = 8 * getWidth()/float(spikeBuffer[0].nSamples);

0 commit comments

Comments
 (0)