summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cc023d9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6338
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int wx, wy, ww, wh;
win->GetPosition(&wx, &wy);
int wx, wy, ww, wh;
win->GetPosition(&wx, &wy);
+
+ // if the window hadn't been positioned yet, assume that it is in
+ // the origin
+ if ( wx == -1 )
+ wx = 0;
+ if ( wy == -1 )
+ wy = 0;
+
win->GetSize(&ww, &wh);
if ( wx + ww > maxX )
maxX = wx + ww;
win->GetSize(&ww, &wh);
if ( wx + ww > maxX )
maxX = wx + ww;