Pass KiBitmapBundle instead of KiBitmap to the pin property comboboxes

Related https://gitlab.com/kicad/code/kicad/-/issues/16698
This commit is contained in:
Marek Roszko 2024-01-21 20:47:11 -05:00
parent 39d918b36a
commit caf463bbd2
3 changed files with 4 additions and 3 deletions

View File

@ -150,7 +150,8 @@ DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES( SYMBOL_EDIT_FRAME* parent, LIB_PIN
const std::vector<BITMAPS>& orientationIcons = PinOrientationIcons();
for ( unsigned ii = 0; ii < orientationNames.GetCount(); ii++ )
m_choiceOrientation->Insert( orientationNames[ii], KiBitmap( orientationIcons[ii] ), ii );
m_choiceOrientation->Insert( orientationNames[ii], KiBitmapBundle( orientationIcons[ii] ),
ii );
// We can't set the tab order through wxWidgets due to shortcomings in their mnemonics
// implementation on MSW

View File

@ -53,7 +53,7 @@ PinShapeComboBox::PinShapeComboBox( wxWindow* parent,
if( bitmap == BITMAPS::INVALID_BITMAP )
Append( text );
else
Insert( text, KiBitmap( bitmap ), ii );
Insert( text, KiBitmapBundle( bitmap ), ii );
}
}

View File

@ -53,7 +53,7 @@ PinTypeComboBox::PinTypeComboBox( wxWindow* parent,
if( bitmap == BITMAPS::INVALID_BITMAP )
Append( text );
else
Insert( text, KiBitmap( bitmap ), ii );
Insert( text, KiBitmapBundle( bitmap ), ii );
}
}