eeschema: iref: use GetParentLabel instead of GetParent

This commit is contained in:
Franck Jullien 2020-10-05 21:27:14 +02:00 committed by Jon Evans
parent 5e0baa2c4a
commit fc93a04751
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, const VECTOR2I& aDelta )
int style = iref->GetParentLabel()->GetLabelSpinStyle();
if( iref->GetParent()->IsSelected() )
if( iref->GetParentLabel()->IsSelected() )
break;
if( ( style == LABEL_SPIN_STYLE::RIGHT ) || ( style == LABEL_SPIN_STYLE::LEFT ) )