X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/724a907cbbf91d407109741ff2ade1bcb6c96f70..e1293dcf96057ed7f7c5ada816377eaf19532c1e:/src/msw/slider95.cpp diff --git a/src/msw/slider95.cpp b/src/msw/slider95.cpp index 8485eb368f..cca538bbff 100644 --- a/src/msw/slider95.cpp +++ b/src/msw/slider95.cpp @@ -394,11 +394,6 @@ void wxSlider95::SetValue(int value) } void wxSlider95::DoGetSize(int *width, int *height) const -{ - GetSize(width, height); -} - -void wxSlider95::GetSize(int *width, int *height) const { RECT rect; rect.left = -1; rect.right = -1; rect.top = -1; rect.bottom = -1; @@ -414,8 +409,10 @@ void wxSlider95::GetSize(int *width, int *height) const if (m_staticValue) wxFindMaxSize(m_staticValue, &rect); - *width = rect.right - rect.left; - *height = rect.bottom - rect.top; + if ( width ) + *width = rect.right - rect.left; + if ( height ) + *height = rect.bottom - rect.top; } void wxSlider95::GetPosition(int *x, int *y) const