compilation fix for wxDFB STL build (#9751)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-21 17:05:14 +00:00
parent b792497e3c
commit 95a695cd54

View File

@@ -797,7 +797,10 @@ void wxWindowDFB::PaintOverlays(const wxRect& rect)
for ( wxDfbOverlaysList::const_iterator i = m_overlays->begin();
i != m_overlays->end(); ++i )
{
wxOverlayImpl *overlay = *i;
// the cast is necessary in STL build because of bug in const_iterator
// operator*() return value
const wxOverlayImpl * const
overlay = wx_static_cast(const wxOverlayImpl *, *i);
wxRect orectOrig(overlay->GetRect());
wxRect orect(orectOrig);