Browse Source

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

Fixes #8877
https://gitlab.com/kicad/code/kicad/issues/8877
6.0.7
jean-pierre charras 5 years ago
parent
commit
8ff76de18e
  1. 1
      eeschema/dialogs/dialog_edit_one_field.cpp
  2. 2
      eeschema/sch_plugins/altium/sch_altium_plugin.cpp

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

2
eeschema/sch_plugins/altium/sch_altium_plugin.cpp

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

Loading…
Cancel
Save