diff --git a/include/wx/generic/tabg.h b/include/wx/generic/tabg.h index 6825b4226d..4069044b1e 100644 --- a/include/wx/generic/tabg.h +++ b/include/wx/generic/tabg.h @@ -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