Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wiechula authored and shahor02 committed Feb 9, 2021
1 parent 985e57d commit e8e9523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/TPC/base/src/Painter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ std::vector<TCanvas*> painter::makeSummaryCanvases(const CalDet<T>& calDet, int
const std::string_view calName = calDet.getName();

if (outputCanvases) {
if (!(outputCanvases->size() < 3)) {
if (outputCanvases->size() < 3) {
LOGP(error, "At least 3 canvases are needed to fill the output, only {} given", outputCanvases->size());
return vecCanvases;
}
Expand Down

0 comments on commit e8e9523

Please sign in to comment.