Skip to content

Commit

Permalink
Fix deep copy of QgsSpatialIndexData
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 9, 2018
1 parent 2a4ab6b commit 98d43ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsspatialindex.cpp
Expand Up @@ -186,8 +186,8 @@ class QgsSpatialIndexData : public QSharedData
initTree();

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

0 comments on commit 98d43ea

Please sign in to comment.