X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9ec0ea7c502aa83ab8de3a04055fffabf47610d..87c0312a66f57b1d167e1f9454a80fe4b7b28e0b:/include/wx/scrolwin.h 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; }