Commit ba39dac2 authored by jean-pierre charras's avatar jean-pierre charras

Fix wxWidgets 2.8 compatibility

parent b5d27a56
...@@ -188,12 +188,11 @@ void DIALOG_ERC::ReBuildMatrixPanel() ...@@ -188,12 +188,11 @@ void DIALOG_ERC::ReBuildMatrixPanel()
wxStaticText* text; wxStaticText* text;
wxSize BoxMatrixMinSize; wxSize BoxMatrixMinSize;
// Try to know the size of bitmaps used in drc matrix // Try to know the size of bitmap button used in drc matrix
wxBitmap bitmap = KiBitmap( ercwarn_xpm ); wxBitmapButton * dummy = new wxBitmapButton( m_PanelERCOptions, wxID_ANY,
wxSize bitmap_size = bitmap.GetSize(); KiBitmap( ercerr_xpm ) );
wxSize bitmap_size = dummy->GetSize();
bitmap_size.x += 5; delete dummy;
bitmap_size.y += 8; // Add a margin around the bitmap
if( !DiagErcTableInit ) if( !DiagErcTableInit )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment