Fix generic wxDataViewToggleRenderer hit testing with any alignment.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Apr 2013 13:16:29 +0000 (13:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Apr 2013 13:16:29 +0000 (13:16 +0000)
commit4e231c294d5708f30b135b72d3209a1327228d41
treeb60872b2d9659f586d85052e8a85d62bc9c2c02c
parentbd7c46cfc6775c8222e859fec0d248cd9f5f03d1
Fix generic wxDataViewToggleRenderer hit testing with any alignment.

This change reverts the changes of r73835 and r73838 to
wxDataViewToggleRenderer::WXActivateCell() and instead fix the bug with mouse
hit testing in this function in the wxDataViewMainWindow::OnMouse() itself.
The problem there was that it offset the coordinates of the event differently
depending on whether the column alignment was set or left as default. Now
always make the coordinates relative to the item (not cell) rectangle for
compatibility with GTK+ native version, which is enough to make the original,
i.e. before the changes of r73835, code work.

See #15144.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datavgen.cpp