]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
compilation fix for mouse hack
[wxWidgets.git] / src / msw / window.cpp
index b8f26f4370828788633564dab37b491464c09426..fe4e04543c570606e6114287a7d00887afbf8888 100644 (file)
@@ -3373,7 +3373,7 @@ bool wxWindow::HandleMouseMove(int x, int y, WXUINT flags)
     if ( (m_lastMouseEvent == wxEVT_RIGHT_DOWN ||
           m_lastMouseEvent == wxEVT_LEFT_DOWN ||
           m_lastMouseEvent == wxEVT_MIDDLE_DOWN) &&
-         (m_lastMouseX == event.m_x && m_lastMouseY == event.m_y) )
+         (m_lastMouseX == x && m_lastMouseY == y) )
     {
         m_lastMouseEvent = wxEVT_MOTION;