Fix layer widget appearance on OSX

This commit is contained in:
Simon Wells 2016-01-16 17:07:24 -05:00 committed by Chris Pavlina
parent b125054afe
commit b5a9e466ff
1 changed files with 3 additions and 3 deletions

View File

@ -210,12 +210,12 @@ wxBitmapButton* LAYER_WIDGET::makeColorButton( wxWindow* aParent, EDA_COLOR_T aC
// then create a wxBitmapButton from it.
wxBitmap bitmap = makeBitmap( aColor );
#ifndef __WXMAC__
#ifdef __WXMAC__
wxBitmapButton* ret = new wxBitmapButton( aParent, aID, bitmap,
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_RAISED );
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_NONE );
#else
wxBitmapButton* ret = new wxBitmapButton( aParent, aID, bitmap,
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y));
wxDefaultPosition, wxSize(BUTT_SIZE_X, BUTT_SIZE_Y), wxBORDER_RAISED );
#endif
// save the color value in the name, no where else to put it.
ret->SetName( makeColorTxt( aColor ) );