Fix jagged indentation in wxGenericCalendarCtrl mouse code

No real changes.
This commit is contained in:
Vadim Zeitlin
2015-12-06 19:38:48 +01:00
parent 773690203e
commit b4b6975bad

View File

@@ -1329,17 +1329,17 @@ void wxGenericCalendarCtrl::OnDClick(wxMouseEvent& event)
{ {
case wxCAL_HITTEST_DAY: case wxCAL_HITTEST_DAY:
GenerateEvent(wxEVT_CALENDAR_DOUBLECLICKED); GenerateEvent(wxEVT_CALENDAR_DOUBLECLICKED);
break; break;
case wxCAL_HITTEST_DECMONTH: case wxCAL_HITTEST_DECMONTH:
case wxCAL_HITTEST_INCMONTH: case wxCAL_HITTEST_INCMONTH:
// allow quickly clicking the inc/dec button any number of // allow quickly clicking the inc/dec button any number of
// times in a row by handling also the double-click event. // times in a row by handling also the double-click event.
OnClick(event); OnClick(event);
break; break;
default: default:
event.Skip(); event.Skip();
break;
} }
} }
@@ -1361,14 +1361,14 @@ void wxGenericCalendarCtrl::OnClick(wxMouseEvent& event)
// GenerateAllChangeEvents() here, we know which event to send // GenerateAllChangeEvents() here, we know which event to send
GenerateEvent(wxEVT_CALENDAR_DAY_CHANGED); GenerateEvent(wxEVT_CALENDAR_DAY_CHANGED);
} }
break; break;
case wxCAL_HITTEST_WEEK: case wxCAL_HITTEST_WEEK:
{ {
wxCalendarEvent send( this, date, wxEVT_CALENDAR_WEEK_CLICKED ); wxCalendarEvent send( this, date, wxEVT_CALENDAR_WEEK_CLICKED );
HandleWindowEvent( send ); HandleWindowEvent( send );
} }
break; break;
case wxCAL_HITTEST_HEADER: case wxCAL_HITTEST_HEADER:
{ {