Skip to content

Fixed crash when sorting subtitle with 2 lines have same timestamp.

Qian Yun requested to merge qianyun/subtitlecomposer:fix-sort-crash into master

subtitlecomposer will crash if I sort subtitle with 2 lines having the same timestamp. Such subtitle can be constructed by "cat" a subtitle twice. (I found this bug when I "cat" 2 subtitles with different languages together.)

The fix is simple that the old code overlooked the border condition: two consecutive lines having same timestamp should also be considered as sorted.

Merge request reports