]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
don't include windows.h unless neccessary
[wxWidgets.git] / 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 )