Fix the coordinates in wxDataViewCustomRenderer::LeftClick() in generic wxDVC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:13:39 +0000 (12:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:13:39 +0000 (12:13 +0000)
commit902334c8fac2e7fb7b54170315ff027530c4567b
tree14627c90df9e975c195cbc503c59b80421306b83
parent665ec08c054a52b2d2202376aad614794dc56579
Fix the coordinates in wxDataViewCustomRenderer::LeftClick() in generic wxDVC.

The code in generic wxDataViewCtrl implementation didn't take the space taken
by tree expander button nor the indentation of child nodes into account, so
the coordinates passed to LeftClick() could be completely wrong.

Fix this by offsetting them to ensure that click coordinates are always
relative to the cell client area.

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