]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/tabg.h
wxMediaCtrl patch from Ryan:
[wxWidgets.git] / include / wx / generic / tabg.h
index 2badfdbc2ff13fad271cc0281e6b9d2dc98f82d3..4069044b1ed63941cc8acaccc20bf695d0f72637 100644 (file)
@@ -5,7 +5,7 @@
 // Modified by:
 // Created:     01/02/97
 // RCS-ID:      $Id$
-// Copyright:   (c)
+// Copyright:   (c) Julian Smart
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -107,7 +107,7 @@ public:
 
   inline int GetNumberOfLayers() const { return m_layers.GetCount(); }
 #if WXWIN_COMPATIBILITY_2_4
-  inline wxList& GetLayers() { return (wxList&)m_layers; }
+  inline wxList& GetLayers() { return *(wxList *)&m_layers; }
 #else
   inline wxTabLayerList& GetLayers() { return m_layers; }
 #endif