Skip to content
Permalink
Browse files

Fix deep copy of QgsSpatialIndexData

  • Loading branch information
nyalldawson committed Feb 9, 2018
1 parent 2a4ab6b commit 98d43ea4e8d58ffdc05f0c84530e32a8e541d769
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsspatialindex.cpp
@@ -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 );

0 comments on commit 98d43ea

Please sign in to comment.
You can’t perform that action at this time.