Skip to content

Commit

Permalink
Disable reshape line tool when 'change geometry' capability missing
Browse files Browse the repository at this point in the history
Matches behavior of reshape polygon tool
  • Loading branch information
Sandro Santilli committed Feb 17, 2016
1 parent b37732c commit b4b382b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10051,7 +10051,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
{
mActionAddFeature->setIcon( QgsApplication::getThemeIcon( "/mActionCaptureLine.svg" ) );

mActionReshapeFeatures->setEnabled( isEditable && canAddFeatures );
mActionReshapeFeatures->setEnabled( isEditable && canChangeGeometry );
mActionSplitFeatures->setEnabled( isEditable && canAddFeatures );
mActionSplitParts->setEnabled( isEditable && canChangeGeometry && isMultiPart );
mActionSimplifyFeature->setEnabled( isEditable && canChangeGeometry );
Expand Down

0 comments on commit b4b382b

Please sign in to comment.