diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index c27b7fa830..96df44be6f 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -177,7 +177,7 @@ protected: : m_targetWindow->GetClientSize(); } - void GetTargetSize(int *w, int *h) + void GetTargetSize(int *w, int *h) const { wxSize size = GetTargetSize(); if ( w )