From 67dda9243760a84b7a91ea84361df3dbf25be02d Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Sat, 27 Apr 2024 14:17:22 +0000 Subject: [PATCH] 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 a565db58c5aeecaae234b8528d8fb0611785c1c0) Co-authored-by: Marek Roszko --- common/dialogs/dialog_configure_paths.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/dialogs/dialog_configure_paths.cpp b/common/dialogs/dialog_configure_paths.cpp index bd5361a305..9a2ad55184 100644 --- a/common/dialogs/dialog_configure_paths.cpp +++ b/common/dialogs/dialog_configure_paths.cpp @@ -70,7 +70,11 @@ DIALOG_CONFIGURE_PATHS::DIALOG_CONFIGURE_PATHS( wxWindow* aParent ) : m_EnvVars->ClearRows(); m_EnvVars->AppendCols( 1 ); // for the isExternal flags 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 ); +#endif wxGridCellAttr* attr = new wxGridCellAttr; attr->SetEditor( new GRID_CELL_PATH_EDITOR( this, m_EnvVars, &m_curdir, wxEmptyString ) );