Skip to content

Commit

Permalink
Activation of OffsetCurve tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 21, 2012
1 parent 82cd4af commit 80108fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -6119,6 +6119,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionDeleteRing->setEnabled( false );
mActionDeletePart->setEnabled( false );
mActionReshapeFeatures->setEnabled( false );
mActionOffsetCurve->setEnabled( false );
mActionSplitFeatures->setEnabled( false );
mActionMergeFeatures->setEnabled( false );
mActionMergeFeatureAttributes->setEnabled( false );
Expand Down Expand Up @@ -6230,7 +6231,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionAddPart->setEnabled( true );
mActionDeletePart->setEnabled( true );
mActionMoveFeature->setEnabled( true );
mActionOffsetCurve->setEnabled( true );
mActionNodeTool->setEnabled( true );
}
else
Expand Down Expand Up @@ -6271,6 +6271,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionReshapeFeatures->setEnabled( true );
mActionSplitFeatures->setEnabled( true );
mActionSimplifyFeature->setEnabled( true );
mActionOffsetCurve->setEnabled( dprovider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues );
}
else
{
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptooloffsetcurve.cpp
Expand Up @@ -167,6 +167,7 @@ void QgsMapToolOffsetCurve::canvasMoveEvent( QMouseEvent * e )
{
layerCoords = results.at( 0 ).snappedVertex;
}
//todo: add vertex marker item
}
}

Expand Down

0 comments on commit 80108fd

Please sign in to comment.