DIALOG_EDIT_ONE_FIELD: fix a non resizable widgets and fix a compil warning.

Fixes #8877
https://gitlab.com/kicad/code/kicad/issues/8877
This commit is contained in:
jean-pierre charras 2021-07-27 14:12:46 +02:00
parent c946070005
commit 8ff76de18e
2 changed files with 2 additions and 1 deletions

View File

@ -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 );

View File

@ -742,7 +742,7 @@ void SCH_ALTIUM_PLUGIN::ParsePin( const std::map<wxString, wxString>& 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 )
{