]> git.saurik.com Git - wxWidgets.git/commitdiff
make wxVarVScrollLegacyAdaptor::OnGetLineHeight() non-pure virtual to fix compilation...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Apr 2007 11:37:04 +0000 (11:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Apr 2007 11:37:04 +0000 (11:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/vscroll.h

index 06437b0a148e623e4747d226b9f1029ea25c46c0..71679937ae941b955925f7089a7c1748b02ab2b7 100644 (file)
@@ -618,9 +618,15 @@ public:
     virtual bool ScrollPages(int pages) { return ScrollRowPages(pages); }
 
 protected:
+    // unless the code has been updated to override OnGetRowHeight() instead,
     // this function must be overridden in the derived class and it should
     // 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
     // OnGetLineHeight instead (backwards compatible name)