From: Vadim Zeitlin Date: Tue, 20 Feb 2001 09:55:44 +0000 (+0000) Subject: compilation fix (patch 103882) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/205c03894b29a2fa03c0b128075516b43bdc59f9 compilation fix (patch 103882) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 30f5695703..ba7350acb3 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -2655,22 +2655,12 @@ bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, Widget widget, { // I have a dclick win->SetLastClick(0, ts); - switch ( eventType ) - { - case wxEVT_LEFT_DOWN: - eventType = wxEVT_LEFT_DCLICK; - break; - case wxEVT_MIDDLE_DOWN: - eventType = wxEVT_MIDDLE_DCLICK; - break; - case wxEVT_RIGHT_DOWN: - eventType = wxEVT_RIGHT_DCLICK; - break; - - default : - break; - } - + if ( eventType == wxEVT_LEFT_DOWN ) + eventType = wxEVT_LEFT_DCLICK; + else if ( eventType == wxEVT_MIDDLE_DOWN ) + eventType = wxEVT_MIDDLE_DCLICK; + else if ( eventType == wxEVT_RIGHT_DOWN ) + eventType = wxEVT_RIGHT_DCLICK; } else {