Skip to content

Commit 1e567d5

Browse files
committed
Fix - for TH1 draw options allow combination "colztext" (#162)
1 parent 83ee39b commit 1e567d5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,14 +1699,7 @@
16991699

17001700
this.Box = this.BoxStyle > 0;
17011701

1702-
if (d.check('COL', true)) {
1703-
this.Color = true;
1704-
1705-
if ((d.part.indexOf('0')>=0) || (d.part.indexOf('1')>=0)) this.Zero = false; // do not draw zero values
1706-
if (d.part.indexOf('Z')>=0) this.Zscale = true;
1707-
if (d.part.indexOf('A')>=0) this.Axis = -1;
1708-
}
1709-
1702+
if (d.check('COL')) this.Color = true;
17101703
if (d.check('CHAR')) this.Char = 1;
17111704
if (d.check('FUNC')) { this.Func = true; this.Hist = false; }
17121705
if (d.check('AXIS')) this.Axis = 1;
@@ -1798,6 +1791,7 @@
17981791
}
17991792
if (d.check('9')) this.HighRes = 1;
18001793
if (d.check('0')) this.Zero = false;
1794+
if (this.Color && d.check('1')) this.Zero = false;
18011795

18021796
// flag identifies 3D drawing mode for histogram
18031797
if ((this.Lego > 0) || (hdim == 3) ||

0 commit comments

Comments
 (0)