]> git.saurik.com Git - wxWidgets.git/commitdiff
applied patch 475879 (Can't use subclassed GridCellEditor)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Nov 2001 18:58:47 +0000 (18:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Nov 2001 18:58:47 +0000 (18:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index d2f3449f1e90712065215a3d303c3e56f0be3866..e2b9e3580721124017104ac5a4c6e8e0901d0ad4 100644 (file)
@@ -2020,7 +2020,7 @@ wxGridCellRenderer* wxGridCellAttr::GetRenderer(wxGrid* grid, int row, int col)
 {
     wxGridCellRenderer* renderer = NULL;
 
-    if ( m_defGridAttr != this || grid == NULL )
+    if ( m_defGridAttr == this || grid == NULL )
     {
         renderer = m_renderer;      // use local attribute
         if ( renderer )