Removed unused, wrong wxDataViewCtrl code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ee1377e1fa
commit
9944f9c6f3
@ -4803,7 +4803,6 @@ void wxDataViewCtrl::OnInternalIdle()
|
||||
|
||||
int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
||||
{
|
||||
#if 1
|
||||
unsigned int len = GetColumnCount();
|
||||
for ( unsigned int i = 0; i < len; i++ )
|
||||
{
|
||||
@ -4813,25 +4812,6 @@ int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
||||
}
|
||||
|
||||
return wxNOT_FOUND;
|
||||
#else
|
||||
// This returns the position in pixels which is not what we want.
|
||||
int ret = 0,
|
||||
dummy = 0;
|
||||
unsigned int len = GetColumnCount();
|
||||
for ( unsigned int i = 0; i < len; i++ )
|
||||
{
|
||||
wxDataViewColumn * col = GetColumnAt(i);
|
||||
if (col->IsHidden())
|
||||
continue;
|
||||
ret += col->GetWidth();
|
||||
if (column==col)
|
||||
{
|
||||
CalcScrolledPosition( ret, dummy, &ret, &dummy );
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
|
||||
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
|
||||
|
Loading…
Reference in New Issue
Block a user