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:
@@ -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).
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user