From: Vadim Zeitlin Date: Sat, 18 Oct 2008 13:50:10 +0000 (+0000) Subject: remove assert from GetSizeAvailableForScrollTarget X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5eda3bcdad54be0ee4134a043b889ce998ce9bef remove assert from GetSizeAvailableForScrollTarget git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index 006a4d6ca3..0ba4976501 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -226,7 +226,11 @@ protected: // case, if we're scrolling a subwindow you must override this method virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) { - wxASSERT_MSG( m_targetWindow == m_win, "must be overridden" ); + // returning just size from here is wrong but it was decided that it is + // not wrong enough to break the existing code (which doesn't override + // this recently added function at all) by adding this assert + // + // wxASSERT_MSG( m_targetWindow == m_win, "must be overridden" ); return size; }