Skip to content

Commit

Permalink
fix: maxX (#715)
Browse files Browse the repository at this point in the history
This fixes #714
  • Loading branch information
eyal0 authored Oct 25, 2022
1 parent a3627f5 commit 7321404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/geos/geom/LineSegment.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class GEOS_DLL LineSegment {
/// gets the maximum X ordinate value
double maxX() const
{
return std::min(p0.x, p1.x);
return std::max(p0.x, p1.x);
};

/// gets the minimum Y ordinate value
Expand Down

0 comments on commit 7321404

Please sign in to comment.