]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utilsgui.cpp
Return correct values for GetFieldRect() when using themes.
[wxWidgets.git] / src / os2 / utilsgui.cpp
index 46712f85f1bb88c5005c04ddb28066a7953a4bec..5b7e06cf347edf692d6ecf98c3bfc50a6cfdfd49 100644 (file)
@@ -428,8 +428,10 @@ void wxDisplaySize(
         ::DevCloseDC(hdcScreen);
         ::WinReleasePS(hpsScreen);
     }
-    *pWidth = (int)lWidth;
-    *pHeight = (int)lHeight;
+    if (pWidth)
+        *pWidth = (int)lWidth;
+    if (pHeight)
+        *pHeight = (int)lHeight;
 }
 
 void wxDisplaySizeMM(