]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/propgrid/propgrid.h
Updated documentation to acknowledge the fact that properties can have identical...
[wxWidgets.git] / include / wx / propgrid / propgrid.h
index 2666cee1b438dd49cca974af4ed3074337343285..4d03285a16c4bdcb94cbd01813976f0e724ff17f 100644 (file)
@@ -967,10 +967,8 @@ public:
     void SetCurrentCategory( wxPGPropArg id )
     {
         wxPG_PROP_ARG_CALL_PROLOG()
     void SetCurrentCategory( wxPGPropArg id )
     {
         wxPG_PROP_ARG_CALL_PROLOG()
-        wxPropertyCategory* pc = (wxPropertyCategory*)p;
-#ifdef __WXDEBUG__
-        if ( pc ) wxASSERT( pc->IsCategory() );
-#endif
+        wxPropertyCategory* pc = wxDynamicCast(p, wxPropertyCategory);
+        wxASSERT(pc);
         m_pState->m_currentCategory = pc;
     }
 
         m_pState->m_currentCategory = pc;
     }
 
@@ -1634,9 +1632,6 @@ protected:
     // background colour for empty space below the grid
     wxColour            m_colEmptySpace;
 
     // background colour for empty space below the grid
     wxColour            m_colEmptySpace;
 
-    // temp property array used in DoDrawItems
-    wxArrayPtrVoid      m_visPropArray;
-
     // NB: These *cannot* be moved to globals.
 
     // Array of background colour brushes.
     // NB: These *cannot* be moved to globals.
 
     // Array of background colour brushes.