Skip to content

Commit ef7107f

Browse files
committed
Fix - avoid JSROOT.clone for Array to copy custom contour
1 parent 88d61b7 commit ef7107f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/JSRootPainter.hist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,9 @@
28562856
}
28572857

28582858
if (histo.fContour && (histo.fContour.length>1) && histo.TestBit(JSROOT.TH1StatusBits.kUserContour)) {
2859-
this.fContour = JSROOT.clone(histo.fContour);
2859+
this.fContour = [];
2860+
for (let n = 0; n < histo.fContour.length; ++n)
2861+
this.fContour.push(histo.fContour[n]);
28602862
this.fCustomContour = true;
28612863
this.colzmin = zmin;
28622864
this.colzmax = zmax;

0 commit comments

Comments
 (0)