Skip to content

Commit c70d007

Browse files
committed
Bugfix the type of z in forcexyz
1 parent f526f54 commit c70d007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformations/forcedims.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If it does, then the z value will be kept.
3030
function forcexyz(geom, z = 0)
3131
return apply(GI.PointTrait(), geom) do point
3232
x, y = GI.x(point), GI.y(point)
33-
z = GI.is3d(geom) ? GI.z(point) : z
33+
z = GI.is3d(geom) ? GI.z(point) : convert(typeof(x), z)
3434
(x, y, z)
3535
end
3636
end

0 commit comments

Comments
 (0)