From ae913124160308f5e98379aa94a27c31c8ceaa8b Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 12 Jan 2020 11:55:03 +0000 Subject: [PATCH] Fix default pin orientation (from Coverity scan) --- eeschema/dialogs/dialog_lib_edit_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_lib_edit_text.cpp b/eeschema/dialogs/dialog_lib_edit_text.cpp index 06b088ccff..3642c746f0 100644 --- a/eeschema/dialogs/dialog_lib_edit_text.cpp +++ b/eeschema/dialogs/dialog_lib_edit_text.cpp @@ -93,7 +93,7 @@ bool DIALOG_LIB_EDIT_TEXT::TransferDataToWindow() m_CommonUnit->SetValue( !m_parent->m_DrawSpecificUnit ); m_CommonConvert->SetValue( !m_parent->m_DrawSpecificConvert ); - m_orientChoice->SetSelection( m_graphicText->GetTextAngle() == TEXT_ANGLE_HORIZ ? 0 : 1 ); + m_orientChoice->SetSelection( m_parent->g_LastTextAngle == TEXT_ANGLE_HORIZ ? 0 : 1 ); } return true;