From 6b68d2c946e0968a6918cc22556948ba9187f9b4 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 18 Sep 2023 17:27:30 +0300 Subject: [PATCH] Vertically center combo cells in symbol fields grid. --- eeschema/fields_grid_table.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 4162f9df8e..78bfc77041 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -249,7 +249,7 @@ void FIELDS_GRID_TABLE::initGrid( WX_GRID* aGrid ) vAlignNames.Add( _( "Bottom" ) ); m_vAlignAttr = new wxGridCellAttr; m_vAlignAttr->SetEditor( new wxGridCellChoiceEditor( vAlignNames ) ); - m_vAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM ); + m_vAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); wxArrayString hAlignNames; hAlignNames.Add( _( "Left" ) ); @@ -257,14 +257,14 @@ void FIELDS_GRID_TABLE::initGrid( WX_GRID* aGrid ) hAlignNames.Add(_( "Right" ) ); m_hAlignAttr = new wxGridCellAttr; m_hAlignAttr->SetEditor( new wxGridCellChoiceEditor( hAlignNames ) ); - m_hAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM ); + m_hAlignAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); wxArrayString orientationNames; orientationNames.Add( _( "Horizontal" ) ); orientationNames.Add(_( "Vertical" ) ); m_orientationAttr = new wxGridCellAttr; m_orientationAttr->SetEditor( new wxGridCellChoiceEditor( orientationNames ) ); - m_orientationAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM ); + m_orientationAttr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); SCH_EDIT_FRAME* editFrame = dynamic_cast( m_frame ); wxArrayString existingNetclasses;