Skip to content

Commit 8a9191f

Browse files
committed
Fix - correctly use fGridColor from TStyle
1 parent b8eb335 commit 8a9191f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
1. Fix in marker attributes handling - can mix different attributes
55
2. Fix in unzomming of log scale - https://root-forum.cern.ch/t/25889
66
3. Fix in TMultiGraph painting - ignore not-supported options https://root-forum.cern.ch/t/25888
7+
4. Fix - correctly use fGridColor from TStyle
78

89

910
## Changes in 5.2.2

scripts/JSRootPainter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7008,8 +7008,8 @@
70087008
var pad = this.root_pad(), h = this.frame_height(), w = this.frame_width(),
70097009
grid, grid_style = JSROOT.gStyle.fGridStyle, grid_color = "black";
70107010

7011-
if (JSROOT.Painter.fGridColor > 0)
7012-
grid_color = JSROOT.Painter.root_colors[JSROOT.Painter.fGridColor];
7011+
if (JSROOT.gStyle.fGridColor > 0)
7012+
grid_color = JSROOT.Painter.root_colors[JSROOT.gStyle.fGridColor];
70137013

70147014
if ((grid_style < 0) || (grid_style >= JSROOT.Painter.root_line_styles.length)) grid_style = 11;
70157015

0 commit comments

Comments
 (0)