Zone can begin right after another one.

This happens when the timer has not enough precision.
This commit is contained in:
Bartosz Taudul 2017-09-24 23:52:08 +02:00
parent 61b7496cef
commit d427e937d3

View File

@ -389,7 +389,7 @@ void View::InsertZone( Event* zone, Event* parent, Vector<Event*>& vec )
if( !vec.empty() )
{
const auto lastend = vec.back()->end;
if( lastend != -1 && lastend < zone->start )
if( lastend != -1 && lastend <= zone->start )
{
zone->parent = parent;
vec.push_back( zone );