From 47187f84bbcc860132a9764341e2795a2a854a94 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 11 Jul 2014 13:38:06 +0000 Subject: [PATCH] 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 --- src/motif/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 58a365a188..6da1631f93 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1252,8 +1252,8 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height, if (x == -1) x = oldX; - if (x == -1) - x = oldY; + if (y == -1) + y = oldY; if ( !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) ) {