Hackfix crash in configure paths using non-ascii chars in column headers

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17743


(cherry picked from commit a565db58c5)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
This commit is contained in:
Mark Roszko 2024-04-27 14:17:22 +00:00
parent 4dfe564243
commit 67dda92437
1 changed files with 4 additions and 0 deletions

View File

@ -70,7 +70,11 @@ DIALOG_CONFIGURE_PATHS::DIALOG_CONFIGURE_PATHS( wxWindow* aParent ) :
m_EnvVars->ClearRows(); m_EnvVars->ClearRows();
m_EnvVars->AppendCols( 1 ); // for the isExternal flags m_EnvVars->AppendCols( 1 ); // for the isExternal flags
m_EnvVars->HideCol( TV_FLAG_COL ); m_EnvVars->HideCol( TV_FLAG_COL );
#ifndef __WXMAC__
// macos crashes on languages at least using non-ascii characters for the column header here of all places
// if we use native column headers, so guard it for windows to still look nice
m_EnvVars->UseNativeColHeader( true ); m_EnvVars->UseNativeColHeader( true );
#endif
wxGridCellAttr* attr = new wxGridCellAttr; wxGridCellAttr* attr = new wxGridCellAttr;
attr->SetEditor( new GRID_CELL_PATH_EDITOR( this, m_EnvVars, &m_curdir, wxEmptyString ) ); attr->SetEditor( new GRID_CELL_PATH_EDITOR( this, m_EnvVars, &m_curdir, wxEmptyString ) );