Skip to content

Commit 5555d15

Browse files
committed
Fix - check if main painter exists when extracting Contour
1 parent 3e0b5e3 commit 5555d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2943,7 +2943,7 @@
29432943

29442944
var main = this.main_painter(),
29452945
fp = this.frame_painter();
2946-
if ((main !== this) && main.fContour) {
2946+
if (main && (main !== this) && main.fContour) {
29472947
this.fContour = main.fContour;
29482948
this.fCustomContour = main.fCustomContour;
29492949
this.colzmin = main.colzmin;

0 commit comments

Comments
 (0)