fix bug in LayerTree.map function: replace old value with new value (the result of applying the callback function)

This commit is contained in:
2025-08-09 14:01:55 +01:00
parent e160e997d3
commit a5b988d136
2 changed files with 1 additions and 1 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -66,7 +66,7 @@ struct
val right = map (f, right)
val newValue = f value
in
NODE {key = key, value = value, left = left, right = right}
NODE {key = key, value = newValue, left = left, right = right}
end
(* copies non-blank pixels in value vector into acc *)