Fix clicking on checkboxes in generic wxDataViewCtrl.

Back port the fix of r75329 from the trunk but without changing
GetEffectiveAlignment() visibility to avoid changing the ABI.

See #15731.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-12-02 16:34:35 +00:00
parent 66214e197b
commit f9450029bc
2 changed files with 2 additions and 1 deletions

View File

@@ -594,6 +594,7 @@ wxGTK:
wxMSW:
- Fix blank wxBitmapComboBox dropdown appearance.
- Fix clicking on checkboxes in wxDataViewCtrl.
- Make "%lu" work with size_t arguments under Win64 (laro).
- Fix wxRegion::Offset() with shared objects (Joost Nieuwenhuijse).
- Fix wxSocket::Initialize() after Shutdown() (Laurent Poujoulat).

View File

@@ -4414,7 +4414,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
// adjust the rectangle ourselves to account for the alignment
int align = cell->GetAlignment();
if ( align == wxDVR_DEFAULT_ALIGNMENT )
align = wxALIGN_CENTRE;
align = cell->GetOwner()->GetAlignment() | wxALIGN_CENTRE_VERTICAL;
wxRect rectItem = cell_rect;
const wxSize size = cell->GetSize();