Skip to content
Permalink
Browse files
travis
  • Loading branch information
wonder-sk committed Mar 29, 2017
1 parent f02d327 commit 7cf802dd4f802f166e4086e2e7dedee488ec6b63
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/core/qgspointlocator.cpp
  2. +3 −0 tests/src/app/testqgsnodetool.cpp
@@ -741,7 +741,7 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
}
}

qDebug( "adding feature to index" );
qDebug( "adding feature to index: %d %s", ( int )f.id(), f.geometry().boundingBox().toString().toAscii().data() );

SpatialIndex::Region r( rect2region( f.geometry().boundingBox() ) );
dataList << new RTree::Data( 0, nullptr, r, f.id() );
@@ -18,6 +18,7 @@
#include "qgsadvanceddigitizingdockwidget.h"
#include "qgsgeometry.h"
#include "qgsmapcanvas.h"
#include "qgsmapcanvassnappingutils.h"
#include "qgsproject.h"
#include "qgsvectorlayer.h"

@@ -188,6 +189,8 @@ void TestQgsNodeTool::initTestCase()

// TODO: set up snapping

mCanvas->setSnappingUtils( new QgsMapCanvasSnappingUtils( mCanvas, this ) );

// create node tool
mNodeTool = new QgsNodeTool2( mCanvas, mAdvancedDigitizingDockWidget );

0 comments on commit 7cf802d

Please sign in to comment.