Skip to content

Commit 42a508c

Browse files
committed
Fix - reset pad ranges also when change log settings via hist options
1 parent 6a5ef44 commit 42a508c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,8 +1609,8 @@
16091609
if (d.check('NOTOOLTIP') && fp) fp.tooltip_allowed = false;
16101610
if (d.check('TOOLTIP') && fp) fp.tooltip_allowed = true;
16111611

1612-
if (d.check('LOGX') && pad) pad.fLogx = 1;
1613-
if (d.check('LOGY') && pad) pad.fLogy = 1;
1612+
if (d.check('LOGX') && pad) { pad.fLogx = 1; pad.fUxmin = 0; pad.fUxmax = 1; pad.fX1 = 0; pad.fX2 = 1; }
1613+
if (d.check('LOGY') && pad) { pad.fLogy = 1; pad.fUymin = 0; pad.fUymax = 1; pad.fY1 = 0; pad.fY2 = 1; }
16141614
if (d.check('LOGZ') && pad) pad.fLogz = 1;
16151615
if (d.check('GRIDXY') && pad) pad.fGridx = pad.fGridy = 1;
16161616
if (d.check('GRIDX') && pad) pad.fGridx = 1;

0 commit comments

Comments
 (0)