Check wxSIZE_ALLOW_MINUS_ONE for x and y too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-09-19 22:32:24 +00:00
parent ce720741f0
commit 44aaf1af69
2 changed files with 4 additions and 4 deletions

View File

@@ -2890,9 +2890,9 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
int currentX, currentY;
GetPosition(&currentX, &currentY);
if (x == -1)
if (x == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
x = currentX;
if (y == -1)
if (y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
y = currentY;
AdjustForParentClientOrigin(x, y, sizeFlags);

View File

@@ -2890,9 +2890,9 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
int currentX, currentY;
GetPosition(&currentX, &currentY);
if (x == -1)
if (x == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
x = currentX;
if (y == -1)
if (y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
y = currentY;
AdjustForParentClientOrigin(x, y, sizeFlags);