Skip to content

Commit 572c38d

Browse files
jmannaufloryst
authored andcommitted
fix(dataarray): clone ranges in DataArray.deepCopy
1 parent 79a15c7 commit 572c38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Common/Core/DataArray/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function vtkDataArray(publicAPI, model) {
486486
publicAPI.shallowCopy(other);
487487

488488
// set the ranges
489-
model.ranges = other.getRanges();
489+
model.ranges = structuredClone(other.getRanges());
490490

491491
// Avoid array reallocation if size already sufficient
492492
// and dataTypes match.

0 commit comments

Comments
 (0)