]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
Implement support for gradient stops for OS X.
[wxWidgets.git] / src / common / datavcmn.cpp
index 38abe9c159bd1fe0f8020b9441e92f43fef07018..de0608121e47d0e4915eba3d293c719908712171 100644 (file)
@@ -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<wxVarian
 void wxDataViewListStore::DeleteItem( unsigned int row )
 {
     wxVector<wxDataViewListStoreLine*>::iterator it = m_data.begin() + row;
+    delete *it;
     m_data.erase( it );
 
     RowDeleted( row );