Skip to content

Commit 7af7685

Browse files
committed
Fix - correctly reset kNoStats bit
1 parent ceff01e commit 7af7685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hist2d/THistPainter.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class THistDrawOptions {
166166
if (d.check('OPTSTAT', true)) this.optstat = d.partAsInt();
167167
if (d.check('OPTFIT', true)) this.optfit = d.partAsInt();
168168

169-
if ((this.optstat || this.optstat) && histo?.TestBit(kNoStats))
169+
if ((this.optstat || this.optfit) && histo?.TestBit(kNoStats))
170170
histo?.InvertBit(kNoStats);
171171

172172
if (d.check('NOSTAT')) this.NoStat = true;

0 commit comments

Comments
 (0)