X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e9cfb91150fee916b286ffa29fa4b5a0885849f..e948e2140fd78e9196821e3ba2d5fba467db61eb:/src/common/datavcmn.cpp diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 38abe9c159..de0608121e 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -792,7 +792,7 @@ wxDataViewCustomRendererBase::RenderText(const wxString& text, text, *dc, GetEllipsizeMode(), - rect.width, + rectText.width, wxELLIPSIZE_FLAGS_NONE ); } @@ -1486,6 +1486,7 @@ void wxDataViewListStore::InsertItem( unsigned int row, const wxVector::iterator it = m_data.begin() + row; + delete *it; m_data.erase( it ); RowDeleted( row );