Skip to content
Permalink
Browse files

Do not draw a rubber band and hilight feature if not necessary

  • Loading branch information
pblottiere committed Oct 22, 2018
1 parent 333971c commit 6df252a2b195ba8883f3bbc4d2e7064a8f0074c6
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/qgsmaptoolchangelabelproperties.cpp
@@ -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 )

0 comments on commit 6df252a

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