helper: Identified missing split functionality

This commit is contained in:
Paul Beckingham 2016-04-27 23:58:18 -04:00
parent 4462e091c5
commit fe60f5ccfe

View file

@ -326,9 +326,13 @@ Interval getLatestInterval (Database& database)
Interval i; Interval i;
auto lastLine = database.lastLine (); auto lastLine = database.lastLine ();
if (lastLine != "") if (lastLine != "")
{
i.initialize (lastLine); i.initialize (lastLine);
if (! i.range.ended ())
// TODO Mask i against timeline. It's easy to say that. {
// TODO An open interval needs to be split against all exclusions.
}
}
return i; return i;
} }