X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/809934d22ad2e97d67655ecb4b06b29b5d2a361d..69d8f6124df7f090e09e37eb1b08a8db8691fbc4:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 9cd5c03895..2e625da139 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -793,9 +793,9 @@ void wxGridCellBoolEditor::SetSize(const wxRect& r) // the checkbox without label still has some space to the right in wxGTK, // so shift it to the right -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined (__WXMOTIF__) w -= 8; -#endif // GTK +#endif // GTK && Motif m_control->Move(r.x + r.width/2 - w/2, r.y + r.height/2 - h/2); } @@ -1225,7 +1225,7 @@ wxSize wxGridCellBoolRenderer::GetBestSize(wxGrid& grid, checkSize = size.y + wxGRID_CHECKMARK_MARGIN; // FIXME wxGTK::wxCheckBox::GetBestSize() gives "wrong" result -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined(__WXMOTIF__) checkSize -= size.y / 2; #endif