diff --git a/eeschema/widgets/pin_shape_combobox.cpp b/eeschema/widgets/pin_shape_combobox.cpp index ecc9a07b8a..a2c43c916c 100644 --- a/eeschema/widgets/pin_shape_combobox.cpp +++ b/eeschema/widgets/pin_shape_combobox.cpp @@ -61,3 +61,9 @@ GRAPHIC_PINSHAPE PinShapeComboBox::GetPinShapeSelection() { return static_cast( GetSelection() ); } + + +void PinShapeComboBox::SetSelection( GRAPHIC_PINSHAPE aShape ) +{ + wxBitmapComboBox::SetSelection( aShape ); +} diff --git a/eeschema/widgets/pin_shape_combobox.h b/eeschema/widgets/pin_shape_combobox.h index 47ff92ca68..b1f0bddd03 100644 --- a/eeschema/widgets/pin_shape_combobox.h +++ b/eeschema/widgets/pin_shape_combobox.h @@ -47,4 +47,5 @@ public: const wxString& name = wxBitmapComboBoxNameStr ); GRAPHIC_PINSHAPE GetPinShapeSelection(); + void SetSelection( GRAPHIC_PINSHAPE aShape ); }; diff --git a/eeschema/widgets/pin_type_combobox.cpp b/eeschema/widgets/pin_type_combobox.cpp index 8b435db240..e587c41fae 100644 --- a/eeschema/widgets/pin_type_combobox.cpp +++ b/eeschema/widgets/pin_type_combobox.cpp @@ -61,3 +61,9 @@ ELECTRICAL_PINTYPE PinTypeComboBox::GetPinTypeSelection() { return static_cast( GetSelection() ); } + + +void PinTypeComboBox::SetSelection( ELECTRICAL_PINTYPE aType ) +{ + wxBitmapComboBox::SetSelection( aType ); +} diff --git a/eeschema/widgets/pin_type_combobox.h b/eeschema/widgets/pin_type_combobox.h index ea196ef880..00036e1961 100644 --- a/eeschema/widgets/pin_type_combobox.h +++ b/eeschema/widgets/pin_type_combobox.h @@ -47,4 +47,5 @@ public: const wxString& name = wxBitmapComboBoxNameStr ); ELECTRICAL_PINTYPE GetPinTypeSelection(); + void SetSelection( ELECTRICAL_PINTYPE aType ); };