Skip to content

Commit

Permalink
Update src/fallbacks.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Martijn Visser <[email protected]>
  • Loading branch information
rafaqz and visr authored Feb 7, 2023
1 parent ac43066 commit 94ccb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fallbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ isempty(::AbstractGeometryTrait, geom) = false
ngeom(::AbstractPointTrait, geom) = 0
getgeom(::AbstractPointTrait, geom) = nothing
getgeom(::AbstractPointTrait, geom, i) = nothing
getpoint(::AbstractPointTrait, geom, i) = geom # Helps generic `gepoint` work with mixed types
getpoint(::AbstractPointTrait, geom, i) = geom # Helps generic `getpoint` work with mixed types
getpoint(::AbstractPointTrait, geom) = (geom,) # getpoint without i always returns an iterable
npoint(::AbstractPointTrait, geom, i) = 1

Expand Down

0 comments on commit 94ccb9d

Please sign in to comment.