X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9abbd4a017322946a8f84853c2ce0192e8fe060f..f632aa1e0589e01a7fe974982510a78efcf10f47:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 01b6002214..9ad817a824 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2883,9 +2883,9 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags int currentX, currentY; GetPosition(¤tX, ¤tY); - 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);