]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
adding types for OpenGL on iPhone
[wxWidgets.git] / src / propgrid / property.cpp
index 325ebc094a7c8d1e9eed66aea7110f64c9acd41b..a1fc39bb206d40391e81eb85606642d99337b66e 100644 (file)
@@ -1430,10 +1430,14 @@ void wxPGProperty::EnsureCells( unsigned int column )
         wxPropertyGrid* pg = GetGrid();
         wxPGCell defaultCell;
 
+        // Work around possible VC6 bug by using intermediate variables
+        const wxPGCell& propDefCell = pg->GetPropertyDefaultCell();
+        const wxPGCell& catDefCell = pg->GetCategoryDefaultCell();
+
         if ( !HasFlag(wxPG_PROP_CATEGORY) )
-            defaultCell = pg->GetPropertyDefaultCell();
+            defaultCell = propDefCell;
         else
-            defaultCell = pg->GetCategoryDefaultCell();
+            defaultCell = catDefCell;
 
         // TODO: Replace with resize() call
         unsigned int cellCountMax = column+1;