Fix using wrong variable in wxMotif DoSetSizeIntr().

Use y instead of using x twice.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-07-11 13:38:06 +00:00
parent 3a87deed2a
commit 47187f84bb

View File

@ -1252,8 +1252,8 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height,
if (x == -1) if (x == -1)
x = oldX; x = oldX;
if (x == -1) if (y == -1)
x = oldY; y = oldY;
if ( !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) ) if ( !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
{ {