Skip to content

Commit 7cf802d

Browse files
committedMar 29, 2017
travis
1 parent f02d327 commit 7cf802d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎src/core/qgspointlocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
741741
}
742742
}
743743

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

746746
SpatialIndex::Region r( rect2region( f.geometry().boundingBox() ) );
747747
dataList << new RTree::Data( 0, nullptr, r, f.id() );

‎tests/src/app/testqgsnodetool.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "qgsadvanceddigitizingdockwidget.h"
1919
#include "qgsgeometry.h"
2020
#include "qgsmapcanvas.h"
21+
#include "qgsmapcanvassnappingutils.h"
2122
#include "qgsproject.h"
2223
#include "qgsvectorlayer.h"
2324

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

189190
// TODO: set up snapping
190191

192+
mCanvas->setSnappingUtils( new QgsMapCanvasSnappingUtils( mCanvas, this ) );
193+
191194
// create node tool
192195
mNodeTool = new QgsNodeTool2( mCanvas, mAdvancedDigitizingDockWidget );
193196

0 commit comments

Comments
 (0)
Please sign in to comment.