]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/dcclient.cpp
Fixed crash caused by A=B?C:D used for returning wxObject derived type.
[wxWidgets.git] / src / dfb / dcclient.cpp
index 1d1354843e0eaeb3c6194a9264e50beee4467a1f..5436d3e20d6b6ac39870f91d0ee011523200cc48 100644 (file)
@@ -45,7 +45,7 @@
 // boundaries ("hidden behind its borders"), recursively:
 static wxRect GetUncoveredWindowArea(wxWindow *win)
 {
-    wxRect r(win->GetRect());
+    wxRect r(win->GetSize());
 
     if ( win->IsTopLevel() )
         return r;