From 6a0a38ec295ef72184f4798f6e05657b5391eef1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 3 Jul 2021 21:07:57 +0100 Subject: [PATCH] Prevent wxWidgets assertion. --- pcbnew/dialogs/dialog_net_inspector_base.cpp | 4 ++-- pcbnew/dialogs/dialog_net_inspector_base.fbp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_net_inspector_base.cpp b/pcbnew/dialogs/dialog_net_inspector_base.cpp index 5664f343d9..6812fdb807 100644 --- a/pcbnew/dialogs/dialog_net_inspector_base.cpp +++ b/pcbnew/dialogs/dialog_net_inspector_base.cpp @@ -33,7 +33,7 @@ DIALOG_NET_INSPECTOR_BASE::DIALOG_NET_INSPECTOR_BASE( wxWindow* parent, wxWindow bSizer7 = new wxBoxSizer( wxHORIZONTAL ); m_textCtrlFilter = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - bSizer7->Add( m_textCtrlFilter, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + bSizer7->Add( m_textCtrlFilter, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); bSizer7->Add( 20, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); @@ -49,7 +49,7 @@ DIALOG_NET_INSPECTOR_BASE::DIALOG_NET_INSPECTOR_BASE( wxWindow* parent, wxWindow fgSizer1->Add( m_groupBy, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 ); m_groupByText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - fgSizer1->Add( m_groupByText, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5 ); + fgSizer1->Add( m_groupByText, 1, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); m_groupByKind = new wxComboBox( this, wxID_ANY, _("Wildcard"), wxDefaultPosition, wxSize( -1,-1 ), 0, NULL, wxCB_DROPDOWN|wxCB_READONLY|wxCB_SIMPLE ); m_groupByKind->Append( _("Wildcard") ); diff --git a/pcbnew/dialogs/dialog_net_inspector_base.fbp b/pcbnew/dialogs/dialog_net_inspector_base.fbp index 8c2cbcc147..ea042f0a4d 100644 --- a/pcbnew/dialogs/dialog_net_inspector_base.fbp +++ b/pcbnew/dialogs/dialog_net_inspector_base.fbp @@ -155,7 +155,7 @@ none 5 - wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL + wxALIGN_CENTER_VERTICAL|wxALL 1 1 @@ -362,7 +362,7 @@ 5 - wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL + wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL 1 1