From fc93a04751f6eaec6f0895c04eff69331fdccfc3 Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Mon, 5 Oct 2020 21:27:14 +0200 Subject: [PATCH] eeschema: iref: use GetParentLabel instead of GetParent --- eeschema/tools/sch_move_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index 993d48a679..eaea2ec1eb 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -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 ) )