From 8ff76de18e793e3314bc88b14480a63da896a3d3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 27 Jul 2021 14:12:46 +0200 Subject: [PATCH] DIALOG_EDIT_ONE_FIELD: fix a non resizable widgets and fix a compil warning. Fixes #8877 https://gitlab.com/kicad/code/kicad/issues/8877 --- eeschema/dialogs/dialog_edit_one_field.cpp | 1 + eeschema/sch_plugins/altium/sch_altium_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_edit_one_field.cpp b/eeschema/dialogs/dialog_edit_one_field.cpp index ab8ddae880..144d189c79 100644 --- a/eeschema/dialogs/dialog_edit_one_field.cpp +++ b/eeschema/dialogs/dialog_edit_one_field.cpp @@ -143,6 +143,7 @@ void DIALOG_EDIT_ONE_FIELD::init() if( m_StyledTextCtrl->IsShown() ) { wxSize maxSize = m_StyledTextCtrl->GetSize(); + maxSize.x = -1; // Do not fix the max width maxSize.y = m_xPosCtrl->GetSize().y; m_StyledTextCtrl->SetMaxSize( maxSize ); m_StyledTextCtrl->SetUseVerticalScrollBar( false ); diff --git a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp index 2ff61dc534..fc103ab8c8 100644 --- a/eeschema/sch_plugins/altium/sch_altium_plugin.cpp +++ b/eeschema/sch_plugins/altium/sch_altium_plugin.cpp @@ -742,7 +742,7 @@ void SCH_ALTIUM_PLUGIN::ParsePin( const std::map& aPropertie void SetTextPositioning( EDA_TEXT* text, ASCH_LABEL_JUSTIFICATION justification, ASCH_RECORD_ORIENTATION orientation ) { int vjustify, hjustify; - double angle; + double angle = TEXT_ANGLE_HORIZ; switch( justification ) {