Fixed length of imported events

This commit is contained in:
Daniel Wolf 2016-03-06 20:39:39 +01:00
parent 4ac159dc4c
commit 933f324943
1 changed files with 2 additions and 2 deletions

View File

@ -49,13 +49,13 @@ public class EntryPoint {
List<TimedEvent> filteredEvents = FilterEvents(timedEvents[eventType], visualization.Regex);
foreach (TimedEvent timedEvent in filteredEvents) {
Timecode start = Timecode.FromSeconds(timedEvent.Start);
Timecode end = Timecode.FromSeconds(timedEvent.End);
Timecode length = Timecode.FromSeconds(timedEvent.End) - start;
switch (visualization.VisualizationType) {
case VisualizationType.Marker:
project.Markers.Add(new Marker(start, timedEvent.Value));
break;
case VisualizationType.Region:
project.Regions.Add(new Region(start, end, timedEvent.Value));
project.Regions.Add(new Region(start, length, timedEvent.Value));
break;
}
}