Skip to content
Permalink
Browse files

[vertex tool] create the editor with an initial selection

  • Loading branch information
3nids committed Jun 7, 2018
1 parent c825f6e commit e46f7894569255a1302ae4f5f8976954b66d6fec
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/vertextool/qgsvertextool.cpp
@@ -1036,6 +1036,13 @@ void QgsVertexTool::showVertexEditor() //#spellok
return;

mSelectedFeature.reset( new QgsSelectedFeature( m.featureId(), m.layer(), mCanvas ) );
for ( int i = 0; i < mSelectedVertices.length(); ++i )
{
if ( mSelectedVertices.at( i ).layer == m.layer() && mSelectedVertices.at( i ).fid == m.featureId() )
{
mSelectedFeature->selectVertex( mSelectedVertices.at( i ).vertexId );
}
}
if ( !mVertexEditor )
{
mVertexEditor.reset( new QgsVertexEditor( m.layer(), mSelectedFeature.get(), mCanvas ) );

0 comments on commit e46f789

Please sign in to comment.
You can’t perform that action at this time.