From 0dc22c1569dff21382ce100b228e7639c93577b2 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 21 Oct 2021 12:44:00 +0200 Subject: [PATCH] Fix TestQgsMultiPoint::boundingBox expectance on boundingbox of empty multipoint --- tests/src/core/geometry/testqgsmultipoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/core/geometry/testqgsmultipoint.cpp b/tests/src/core/geometry/testqgsmultipoint.cpp index 51d8a2163e3c6..e1bef9b58621e 100644 --- a/tests/src/core/geometry/testqgsmultipoint.cpp +++ b/tests/src/core/geometry/testqgsmultipoint.cpp @@ -1015,7 +1015,7 @@ void TestQgsMultiPoint::boundingBox() QCOMPARE( mp.boundingBox(), QgsRectangle( 0, 0, 1, 2 ) ); mp.clear(); - QCOMPARE( mp.boundingBox(), QgsRectangle( std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN(), std::numeric_limits< double >::quiet_NaN() ) ); + QCOMPARE( mp.boundingBox(), QgsRectangle() ); mp.addGeometry( new QgsPoint( 1, 2 ) ); QCOMPARE( mp.boundingBox(), QgsRectangle( 1, 2, 1, 2 ) );