Skip to content

Commit a1e0f01

Browse files
committed
fixes for advanced digitizing tools
do not clear intermediate points when digitizing points in construction mode increase maximum height of dock widget when tools are disabled
1 parent a56ec98 commit a1e0f01

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/qgsadvanceddigitizingdockwidget.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void QgsAdvancedDigitizingDockWidget::mapToolChanged( QgsMapTool* tool )
235235
mErrorLabel->setText( lblText );
236236
mErrorLabel->show();
237237
mCadWidget->hide();
238-
setMaximumSize( 5000, 70 );
238+
setMaximumSize( 5000, 80 );
239239

240240
setCadEnabled( false );
241241
}
@@ -870,8 +870,10 @@ bool QgsAdvancedDigitizingDockWidget::canvasReleaseEventFilter( QgsMapMouseEvent
870870

871871
if ( e->button() == Qt::LeftButton )
872872
{
873-
// continue digitizing if line or polygon
874-
if ( e->mapTool()->mode() == QgsMapToolCapture::CaptureNone || e->mapTool()->mode() == QgsMapToolCapture::CapturePoint )
873+
// stop digitizing if not intermediate point and if line or polygon
874+
if ( !mConstructionMode &&
875+
( e->mapTool()->mode() == QgsMapToolCapture::CaptureNone ||
876+
e->mapTool()->mode() == QgsMapToolCapture::CapturePoint ) )
875877
{
876878
clearPoints();
877879
}

0 commit comments

Comments
 (0)