File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -10087,17 +10087,18 @@ void QgisApp::enableDigitizeWithCurveAction( bool enable )
10087
10087
QgsSettings settings;
10088
10088
10089
10089
QObject *sender = QObject::sender();
10090
- if ( sender && sender != this )
10091
- enable &= ( sender == mActionAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
10092
- sender == mActionSplitFeatures;
10093
- else
10094
- enable &= ( mMapCanvas->mapTool() == mMapTools.mAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
10095
- mMapCanvas->mapTool() == mMapTools.mSplitFeatures;
10090
+
10091
+ enable &= ( sender == mActionAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
10092
+ ( mMapCanvas->mapTool() == mMapTools.mAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
10093
+ sender == mActionSplitFeatures ||
10094
+ mMapCanvas->mapTool() == mMapTools.mSplitFeatures;
10096
10095
10097
10096
bool isChecked = settings.value( QStringLiteral( "UI/digitizeWithCurve" ) ).toInt() && enable;
10098
10097
mActionDigitizeWithCurve->setChecked( isChecked );
10099
-
10100
10098
mActionDigitizeWithCurve->setEnabled( enable );
10099
+
10100
+ mMapTools.mAddFeature->setCircularDigitizingEnabled( isChecked );
10101
+ static_cast<QgsMapToolCapture *>( mMapTools.mSplitFeatures )->setCircularDigitizingEnabled( isChecked );
10101
10102
}
10102
10103
10103
10104
void QgisApp::splitFeatures()
You can’t perform that action at this time.
0 commit comments