From b4b6975badef41c5f49907284842937f5bff6939 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Dec 2015 19:38:48 +0100 Subject: [PATCH] Fix jagged indentation in wxGenericCalendarCtrl mouse code No real changes. --- src/generic/calctrlg.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/generic/calctrlg.cpp b/src/generic/calctrlg.cpp index db92313b42..4c91d266b1 100644 --- a/src/generic/calctrlg.cpp +++ b/src/generic/calctrlg.cpp @@ -1329,17 +1329,17 @@ void wxGenericCalendarCtrl::OnDClick(wxMouseEvent& event) { case wxCAL_HITTEST_DAY: GenerateEvent(wxEVT_CALENDAR_DOUBLECLICKED); - break; + break; + case wxCAL_HITTEST_DECMONTH: case wxCAL_HITTEST_INCMONTH: - // allow quickly clicking the inc/dec button any number of // times in a row by handling also the double-click event. OnClick(event); - break; + break; + default: event.Skip(); - break; } } @@ -1361,14 +1361,14 @@ void wxGenericCalendarCtrl::OnClick(wxMouseEvent& event) // GenerateAllChangeEvents() here, we know which event to send GenerateEvent(wxEVT_CALENDAR_DAY_CHANGED); } - break; + break; case wxCAL_HITTEST_WEEK: - { - wxCalendarEvent send( this, date, wxEVT_CALENDAR_WEEK_CLICKED ); - HandleWindowEvent( send ); - } - break; + { + wxCalendarEvent send( this, date, wxEVT_CALENDAR_WEEK_CLICKED ); + HandleWindowEvent( send ); + } + break; case wxCAL_HITTEST_HEADER: {