]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/slider.cpp
fixed typo (no code changes)
[wxWidgets.git] / src / os2 / slider.cpp
index 7662c87bfbac6ba6ba034d712042d4b547ef9d7e..db9beff7687c86a2f2008a24229b635271c8d883 100644 (file)
@@ -862,8 +862,10 @@ void wxSlider::GetSize(
         wxFindMaxSize( m_hStaticValue
                       ,&vRect
                      );
-    *pnWidth  = vRect.xRight - vRect.xLeft;
-    *pnHeight = vRect.yBottom - vRect.yTop;
+    if (pnWidth)
+        *pnWidth  = vRect.xRight - vRect.xLeft;
+    if (pnHeight)
+        *pnHeight = vRect.yTop - vRect.yBottom;
 } // end of wxSlider::GetSize
 
 int wxSlider::GetThumbLength() const