From e07a4c285b013d10a31f37166ba1fe88b27b0e53 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 21 Jan 2024 11:18:59 +0000 Subject: [PATCH] Remove old hack required for wxWidgets 3.0 on MacOS. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16687 --- pcbnew/dialogs/dialog_drc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index 6f9b889fd0..57db9c18b0 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -953,13 +953,11 @@ void DIALOG_DRC::OnCancelClick( wxCommandEvent& aEvent ) void DIALOG_DRC::OnChangingNotebookPage( wxNotebookEvent& aEvent ) { - // Shouldn't be necessary, but is on at least OSX - if( aEvent.GetSelection() >= 0 ) - m_Notebook->ChangeSelection( (unsigned) aEvent.GetSelection() ); - m_markerDataView->UnselectAll(); m_unconnectedDataView->UnselectAll(); m_footprintsDataView->UnselectAll(); + + aEvent.Skip(); }