Skip to content
Permalink
Browse files
Fix support for advanced digitizing dock (CAD)
  • Loading branch information
wonder-sk committed Apr 5, 2017
1 parent a103270 commit d1e7d1759ad67315124ca4c13460f1f0b1f36c46
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/nodetool/qgsnodetool2.cpp
@@ -411,7 +411,7 @@ void QgsNodeTool2::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
toCanvasCoordinates( pt ),
Qt::LeftButton, Qt::LeftButton, Qt::NoModifier );
QgsMapMouseEvent me( canvas(), &mouseEvent );
cadDockWidget()->canvasReleaseEvent( &me, QgsAdvancedDigitizingDockWidget::TwoPoints ); // TODO: correct second flag?
cadDockWidget()->canvasReleaseEvent( &me, QgsAdvancedDigitizingDockWidget::ManyPoints );
}

mOverrideCadPoints.clear();
@@ -1146,7 +1146,7 @@ void QgsNodeTool2::stopDragging()
QPoint(),
Qt::RightButton, Qt::RightButton, Qt::NoModifier );
QgsMapMouseEvent me( canvas(), &mouseEvent );
cadDockWidget()->canvasReleaseEvent( &me, QgsAdvancedDigitizingDockWidget::SinglePoint ); // TODO: correct second arg?
cadDockWidget()->canvasReleaseEvent( &me, QgsAdvancedDigitizingDockWidget::SinglePoint );

mDraggingVertex.reset();
mDraggingVertexType = NotDragging;

0 comments on commit d1e7d17

Please sign in to comment.