Manually typed timestamps not registered correctly #43
Labels
No labels
Priority
High
Priority
Low
Priority
Mid
bug
duplicate
enhancement
help wanted
invalid
question
upstream
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AnthonyKwon/ti_lyricstudio#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Manually typed timestamps registered and save correctly to lyrics data.
Actual Behavior
Manually typed timestamps seems to be not registered correctly, and causes broken behaviour.
This is not all condition tested, so there might be more.
Additional Context
I'm not sure yet. maybe botched timestamp index finding code on here? Really not sure yet, need more inspection.
case EditorEditTarget.Time:int timestampIndex = 0;for (int i = Lines.IndexOf(line) - 1; i >= 0 && Lines[i].Data.Origin == index; i++)timestampIndex++;// update the text of the current line_file.Lines[index].Time[timestampIndex] = line.Data.Time;That snippet was not a suspect since removing it didn't fix a bug. but I'll removed it on
24cb1e8524anyway since now we have better approach.Found what's going on. For some reason, timestamp content is applied one time later. I don't know why it happens, and who causes it yet...
+ it seems to be happen on text too, just much less frequently than timestamp.
this is fixed by #46.