Changeset 56210

Show
Ignore:
Timestamp:
10/10/08 03:02:35 (6 weeks ago)
Author:
RR
Message:

Fix crash again

Location:
wxWidgets/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/include/wx/generic/dataview.h

    r56204 r56210  
    390390    wxDataViewCtrl() : wxScrollHelperNative(this) 
    391391    { 
    392         //No sorting column at start, I think 
    393         m_sortingColumn = NULL; 
    394392        Init(); 
    395393    } 
     
    401399             : wxScrollHelperNative(this) 
    402400    { 
    403         m_sortingColumn = NULL; 
    404401        Create(parent, id, pos, size, style, validator ); 
    405402    } 
  • wxWidgets/trunk/src/generic/datavgen.cpp

    r56208 r56210  
    40944094    m_cols.DeleteContents(true); 
    40954095    m_notifier = NULL; 
     4096     
     4097    // No sorting column at start 
     4098    m_sortingColumn = NULL; 
     4099    m_headerArea = NULL; 
    40964100} 
    40974101 
     
    41034107        style |= wxBORDER_SUNKEN; 
    41044108 
     4109    Init(); 
     4110 
    41054111    if (!wxControl::Create( parent, id, pos, size, 
    41064112                            style | wxScrolledWindowStyle, validator)) 
     
    41084114 
    41094115    SetInitialSize(size); 
    4110  
    4111     Init(); 
    41124116 
    41134117#ifdef __WXMAC__