Skip to content

Commit f9004e8

Browse files
committed
Fix use undef
1 parent 73e2da1 commit f9004e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hist2d/RHistPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class RHistPainter extends RObjectPainter {
149149
if ((histo.stepx > 1) || (histo.stepy > 1) || (histo.stepz > 1))
150150
histo.getBin0 = function(x, y, z) { return Math.floor((x-this.dx)/this.stepx) + this.nx/this.stepx*Math.floor((y-this.dy)/this.stepy) + this.nx/this.stepx*this.ny/this.stepy*Math.floor((z-this.dz)/this.stepz); }
151151
else
152-
histo.getBin0 = function(x, y, z) { return (x-this.dx) + this.nx*(y-this.dy) + this.nx*this.ny*(z-dz); }
152+
histo.getBin0 = function(x, y, z) { return (x-this.dx) + this.nx*(y-this.dy) + this.nx*this.ny*(z-this.dz); }
153153

154154
histo.getBinContent = function(x, y, z) { return this.fBinContent[this.getBin0(x, y, z)]; }
155155
histo.getBinError = function(x, y, z) { return Math.sqrt(Math.abs(this.getBinContent(x, y, z))); }

0 commit comments

Comments
 (0)