fix bug in LayerTree.map function: replace old value with new value (the result of applying the callback function)
This commit is contained in:
@@ -66,7 +66,7 @@ struct
|
|||||||
val right = map (f, right)
|
val right = map (f, right)
|
||||||
val newValue = f value
|
val newValue = f value
|
||||||
in
|
in
|
||||||
NODE {key = key, value = value, left = left, right = right}
|
NODE {key = key, value = newValue, left = left, right = right}
|
||||||
end
|
end
|
||||||
|
|
||||||
(* copies non-blank pixels in value vector into acc *)
|
(* copies non-blank pixels in value vector into acc *)
|
||||||
|
|||||||
Reference in New Issue
Block a user