make wxVarVScrollLegacyAdaptor::OnGetLineHeight() non-pure virtual to fix compilation with WXWIN_COMPATIBILITY_2_8==1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -618,9 +618,15 @@ public:
|
|||||||
virtual bool ScrollPages(int pages) { return ScrollRowPages(pages); }
|
virtual bool ScrollPages(int pages) { return ScrollRowPages(pages); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
// unless the code has been updated to override OnGetRowHeight() instead,
|
||||||
// this function must be overridden in the derived class and it should
|
// this function must be overridden in the derived class and it should
|
||||||
// return the height of the given row in pixels
|
// return the height of the given row in pixels
|
||||||
virtual wxCoord OnGetLineHeight(size_t n) const = 0;
|
virtual wxCoord OnGetLineHeight(size_t n) const
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( _T("must be overridden if OnGetRowHeight() isn't!") );
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// forwards the calls from base class pure virtual function to pure virtual
|
// forwards the calls from base class pure virtual function to pure virtual
|
||||||
// OnGetLineHeight instead (backwards compatible name)
|
// OnGetLineHeight instead (backwards compatible name)
|
||||||
|
Reference in New Issue
Block a user