diff --git a/lib/src/event_arrangers/merge_event_arranger.dart b/lib/src/event_arrangers/merge_event_arranger.dart index d9bae4fc..37e9ca6a 100644 --- a/lib/src/event_arrangers/merge_event_arranger.dart +++ b/lib/src/event_arrangers/merge_event_arranger.dart @@ -124,10 +124,15 @@ class MergeEventArranger extends EventArranger { bool _checkIsOverlapping(int arrangedEventStart, int arrangedEventEnd, int eventStart, int eventEnd) { - return (arrangedEventStart >= eventStart && + var result = (arrangedEventStart >= eventStart && arrangedEventStart <= eventEnd) || (arrangedEventEnd >= eventStart && arrangedEventEnd <= eventEnd) || (eventStart >= arrangedEventStart && eventStart <= arrangedEventEnd) || (eventEnd >= arrangedEventStart && eventEnd <= arrangedEventEnd); + + if (result) { + result = result && (arrangedEventEnd != eventStart); + } + return result; } }