Skip to content

Commit f67a603

Browse files
committed
Fix - for TH1 draw options allow combination "colztext" (#162)
1 parent 761ccbe commit f67a603

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
@@ -1753,14 +1753,7 @@
17531753

17541754
this.Box = this.BoxStyle > 0;
17551755

1756-
if (d.check('COL', true)) {
1757-
this.Color = true;
1758-
1759-
if ((d.part.indexOf('0')>=0) || (d.part.indexOf('1')>=0)) this.Zero = false; // do not draw zero values
1760-
if (d.part.indexOf('Z')>=0) this.Zscale = true;
1761-
if (d.part.indexOf('A')>=0) this.Axis = -1;
1762-
}
1763-
1756+
if (d.check('COL')) this.Color = true;
17641757
if (d.check('CHAR')) this.Char = 1;
17651758
if (d.check('FUNC')) { this.Func = true; this.Hist = false; }
17661759
if (d.check('AXIS')) this.Axis = 1;
@@ -1852,6 +1845,7 @@
18521845
}
18531846
if (d.check('9')) this.HighRes = 1;
18541847
if (d.check('0')) this.Zero = false;
1848+
if (this.Color && d.check('1')) this.Zero = false;
18551849

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

0 commit comments

Comments
 (0)