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:
@@ -4803,7 +4803,6 @@ void wxDataViewCtrl::OnInternalIdle()
|
|||||||
|
|
||||||
int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
unsigned int len = GetColumnCount();
|
unsigned int len = GetColumnCount();
|
||||||
for ( unsigned int i = 0; i < len; i++ )
|
for ( unsigned int i = 0; i < len; i++ )
|
||||||
{
|
{
|
||||||
@@ -4813,25 +4812,6 @@ int wxDataViewCtrl::GetColumnPosition( const wxDataViewColumn *column ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
return wxNOT_FOUND;
|
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
|
wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
|
||||||
|
Reference in New Issue
Block a user