Skip to content

Conversation

@davidrusu
Copy link

@davidrusu davidrusu commented Oct 21, 2018

Ran into an issue when trying to process a state map similar to this one:

{"start":[1533843905,0],"states":{"a":{"value":0,"color":"#be78ed"},"b":{"value":1,"color":"#edbf4b"}},"title":"test"}
{"entity":"e1","state":0,"tag":"4","time":"47000000000"}
{"entity":"e1","state":0,"tag":"3","time":"51000000000"}
{"entity":"e1","state":0,"tag":"2","time":"51000000000"}

statemap would die with an assertion failure

let rect = self.rects[&rect_start].borrow();
if rect.duration == 0 {
// discard this rectangle since it has 0 width
continue;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only semantic change, rest is some cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant