Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not draw a rubber band and hilight feature if not necessary
  • Loading branch information
pblottiere committed Oct 22, 2018
1 parent 333971c commit 6df252a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/qgsmaptoolchangelabelproperties.cpp
Expand Up @@ -71,6 +71,12 @@ void QgsMapToolChangeLabelProperties::canvasPressEvent( QgsMapMouseEvent *e )
QgsPalIndexes indexes;
bool newAuxiliaryLayer = createAuxiliaryFields( indexes );

if ( !newAuxiliaryLayer && !mCurrentLabel.layer->auxiliaryLayer() )
{
deleteRubberBands();
return;
}

// in case of a new auxiliary layer, a dialog window is displayed and the
// canvas release event is lost.
if ( newAuxiliaryLayer )
Expand Down

0 comments on commit 6df252a

Please sign in to comment.