Skip to content

Commit 98d43ea

Browse files
committed
Fix deep copy of QgsSpatialIndexData
1 parent 2a4ab6b commit 98d43ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsspatialindex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ class QgsSpatialIndexData : public QSharedData
186186
initTree();
187187

188188
// copy R-tree data one by one (is there a faster way??)
189-
double low[] = { DBL_MIN, DBL_MIN };
190-
double high[] = { DBL_MAX, DBL_MAX };
189+
double low[] = { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::lowest() };
190+
double high[] = { std::numeric_limits<double>::max(), std::numeric_limits<double>::max() };
191191
SpatialIndex::Region query( low, high, 2 );
192192
QgsSpatialIndexCopyVisitor visitor( mRTree );
193193
other.mRTree->intersectsWithQuery( query, visitor );

0 commit comments

Comments
 (0)