Skip to content

Commit c2015a6

Browse files
committed
GPU QA: Fix colors when writing histograms to ROOT files
1 parent cad3e3f commit c2015a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/qa/GPUQA.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ int32_t GPUQA::DrawQAHistograms(TObjArray* qcout)
20312031
[[maybe_unused]] static int32_t initColorsInitialized = initColors();
20322032
}
20332033
for (int32_t i = 0; i < COLORCOUNT; i++) {
2034-
colorNums[i] = qcout ? defaultColorNums[i] : mColors[i]->GetNumber();
2034+
colorNums[i] = (qcout || mConfig.writeRootFiles) ? defaultColorNums[i] : mColors[i]->GetNumber();
20352035
}
20362036

20372037
bool mcAvail = mcPresent();

0 commit comments

Comments
 (0)