Skip to content

Commit b7138b1

Browse files
committedFeb 8, 2019
Fix tests
1 parent e6f148e commit b7138b1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎src/app/vertextool/qgsvertextool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,14 +475,14 @@ void QgsVertexTool::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
475475

476476
mNewVertexFromDoubleClick.reset();
477477

478-
// dragging of edges and double clicking on edges to add vertex are slightly overlapping
478+
// dragging of edges and double-clicking on edges to add vertex are slightly overlapping
479479
// so we need to cancel edge moving before we start dragging new vertex
480480
stopDragging();
481481
startDraggingAddVertex( m );
482482

483483
if ( e->modifiers() & Qt::ShiftModifier )
484484
{
485-
// if this was shift + double click, immediately place the vertex
485+
// if this was shift + double-click, immediately place the vertex
486486
moveVertex( m.point(), &m );
487487
// force update of rubber bands
488488
mouseMoveNotDragging( e );

‎tests/src/app/testqgsvertextool.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ void TestQgsVertexTool::testMoveMultipleVertices()
547547
mouseClick( 1, 1, Qt::LeftButton );
548548
mouseClick( 0, 0, Qt::LeftButton );
549549

550+
// extra click away from everything to clear the selection
551+
mouseClick( 8, 8, Qt::LeftButton );
552+
550553
QCOMPARE( mLayerLine->undoStack()->index(), 2 );
551554
QCOMPARE( mLayerLine->getFeature( mFidLineF1 ).geometry(), QgsGeometry::fromWkt( "LINESTRING(2 1, 0 0, 0 2)" ) );
552555

0 commit comments

Comments
 (0)
Please sign in to comment.