Fix computation of the item offset in generic wxDataViewCtrl code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Aug 2011 13:40:40 +0000 (13:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 30 Aug 2011 13:40:40 +0000 (13:40 +0000)
commitc46ecbe3b5bd25dcc1e2bac012ad3dd8dff3e594
tree42cfa9c453732085534be733a1a04dce79e28e40
parent179dbf40de2fb6268b85374552a9bf3084c7aab9
Fix computation of the item offset in generic wxDataViewCtrl code.

We need to account for the expander even for the items that don't have
children when computing their offset as their parent still does have it,
contributing to the total offset.

This corrects the fixes of r68836 to also work for the leaf items.

Also rename expanderOffset variable to more clear itemOffset.

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