Skip to content

Commit 0bf78b5

Browse files
committed
Fix - improve logic when TGraph drawn with axes
1 parent 2d6ca2e commit 0bf78b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootPainter.more.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@
881881
// either graph drawn directly or
882882
// graph is first object in list of primitives
883883
var pad = this.root_pad();
884-
if (!pad || !pad.fPrimitives || (pad.fPrimitives.arr[0] === graph)) res.Axis = "AXIS";
884+
if (!pad || (pad.fPrimitives && (pad.fPrimitives.arr[0] === graph))) res.Axis = "AXIS";
885885
} else if (res.Axis.indexOf("A")<0) {
886886
res.Axis = "AXIS," + res.Axis;
887887
}

0 commit comments

Comments
 (0)