mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Add a safe guard
This commit is contained in:
parent
fa4a426893
commit
0c21e51531
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user