Skip to content

Commit

Permalink
Add a safe guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 9, 2017
1 parent fa4a426 commit 0c21e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsmaptoollabel.cpp
Expand Up @@ -794,6 +794,9 @@ bool QgsMapToolLabel::isAuxiliaryField( QgsVectorLayer *layer, int index ) const
{
bool auxiliaryField = false;

if ( !layer->auxiliaryLayer() )
return auxiliaryField;

if ( index >= 0 && layer->fields().fieldOrigin( index ) == QgsFields::OriginJoin )
{
int srcFieldIndex;
Expand Down

0 comments on commit 0c21e51

Please sign in to comment.