diff --git a/src/dfb/window.cpp b/src/dfb/window.cpp index 809a899a0a..c64c742356 100644 --- a/src/dfb/window.cpp +++ b/src/dfb/window.cpp @@ -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);