diff --git a/pcbnew/layer_widget.cpp b/pcbnew/layer_widget.cpp index feee0b5845..d07f82b407 100644 --- a/pcbnew/layer_widget.cpp +++ b/pcbnew/layer_widget.cpp @@ -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 ) );