Skip to content

Commit 0fb54bc

Browse files
vcloarecnyalldawson
authored andcommittedSep 21, 2020
fix #38872
1 parent ca6ffb7 commit 0fb54bc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10087,17 +10087,18 @@ void QgisApp::enableDigitizeWithCurveAction( bool enable )
1008710087
QgsSettings settings;
1008810088

1008910089
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;
1009610095

1009710096
bool isChecked = settings.value( QStringLiteral( "UI/digitizeWithCurve" ) ).toInt() && enable;
1009810097
mActionDigitizeWithCurve->setChecked( isChecked );
10099-
1010010098
mActionDigitizeWithCurve->setEnabled( enable );
10099+
10100+
mMapTools.mAddFeature->setCircularDigitizingEnabled( isChecked );
10101+
static_cast<QgsMapToolCapture *>( mMapTools.mSplitFeatures )->setCircularDigitizingEnabled( isChecked );
1010110102
}
1010210103

1010310104
void QgisApp::splitFeatures()

0 commit comments

Comments
 (0)
Please sign in to comment.