]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/slider.cpp
fixed wxMBConv_iconv to work with UTF-16/32
[wxWidgets.git] / src / os2 / slider.cpp
index 20d589fe72f715bc8d4572ea8a9d78944c0f19e6..eba1df64c6d9d5b7b9ca2b331e48c5b77c104642 100644 (file)
@@ -495,6 +495,7 @@ void wxSlider::DoSetSize(
 
     if (nOS2Height < 0)
         nOS2Height = 20;
+    CacheBestSize(wxSize(nWidth,nOS2Height));
 
     if (pParent)
     {
@@ -812,8 +813,10 @@ void wxSlider::GetPosition(
         vPoint.x -= vPt.x;
         vPoint.y -= vPt.y;
     }
-    *pnX = vPoint.x;
-    *pnY = vPoint.y;
+    if (pnX)
+        *pnX = vPoint.x;
+    if (pnY)
+        *pnY = vPoint.y;
 } // end of wxSlider::GetPosition
 
 int wxSlider::GetSelEnd() const