Skip to content

Commit

Permalink
restore isValid check to normalizeX in GeoExtent #1796
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Dec 12, 2023
1 parent 6e638f5 commit 6e1bd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgEarth/GeoData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ GeoExtent::area() const
double
GeoExtent::normalizeX(double x) const
{
if (is_valid(x) && _srs.valid() && _srs->isGeographic())
if (is_valid(x) && isValid() && _srs->isGeographic())
{
if (fabs(x) <= 180.0)
{
Expand Down

0 comments on commit 6e1bd12

Please sign in to comment.