Skip to content

Commit d91f676

Browse files
committed
Correctly update TH3 statbox after zooming
1 parent 03268d3 commit d91f676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@
24532453
}
24542454
}
24552455

2456-
if (histo.fTsumw > 0) {
2456+
if ((histo.fTsumw > 0) && !this.IsAxisZoomed("x") && !this.IsAxisZoomed("y") && !this.IsAxisZoomed("z")) {
24572457
stat_sum0 = histo.fTsumw;
24582458
stat_sumx1 = histo.fTsumwx;
24592459
stat_sumx2 = histo.fTsumwx2;

0 commit comments

Comments
 (0)