From 6e1bd12835f5b346ed6dc41c21122d305c5fc348 Mon Sep 17 00:00:00 2001 From: Glenn Waldron Date: Tue, 12 Dec 2023 08:17:39 -0500 Subject: [PATCH] restore isValid check to normalizeX in GeoExtent #1796 --- src/osgEarth/GeoData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgEarth/GeoData.cpp b/src/osgEarth/GeoData.cpp index 32a2948637..b164f54d21 100644 --- a/src/osgEarth/GeoData.cpp +++ b/src/osgEarth/GeoData.cpp @@ -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) {