Skip to content

Commit 15757ed

Browse files
author
melodieborel
committed
Fix display for probes with more than 16 channels
1 parent b28033f commit 15757ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Plugins/EvntTrigAvg/EvntTrigAvgCanvas.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ void EvntTrigAvgDisplay::paint(Graphics &g)
234234
GraphUnit* graph;
235235
ScopedLock myScopedLock(*processor->getMutex());
236236
if(histoData[i][1]==0){ // if sortedId == 0
237-
graph = new GraphUnit(processor,canvas,channelColours[(histoData[i][0]+sizeof(channelColours))%(sizeof(channelColours))],labels[histoData[i][0]],&minMaxMean[i][2],&histoData[i][2]); // pass &histoData[i][2] instead of 3 to pass on how many bins are used
237+
graph = new GraphUnit(processor,canvas,channelColours[(histoData[i][0])%16],labels[histoData[i][0]],&minMaxMean[i][2],&histoData[i][2]); // pass &histoData[i][2] instead of 3 to pass on how many bins are used
238238
}
239239
else{
240-
graph = new GraphUnit(processor,canvas,channelColours[(histoData[i][0]+sizeof(channelColours))%(sizeof(channelColours))],"ID "+String(histoData[i][1]),&minMaxMean[i][2],&histoData[i][2]);
240+
graph = new GraphUnit(processor,canvas,channelColours[(histoData[i][0])%16],"ID "+String(histoData[i][1]),&minMaxMean[i][2],&histoData[i][2]);
241241
}
242242
graphs.push_back(graph);
243243
graph->setBounds(0, 40*(graphCount), width-20, 40);

0 commit comments

Comments
 (0)