Paragraph constructor should not re-use ID (may result in crashes) - thx Krystian :)

This commit is contained in:
niksedk 2015-07-29 15:25:34 +02:00
parent 6455d6eccf
commit 7a5b5546b8
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ Note: Do check free disk space.</WaveFileMalformed>
<BridgeGapsSmallerThanXPart2>milliseconds</BridgeGapsSmallerThanXPart2>
<MinMillisecondsBetweenLines>Min. milliseconds between lines</MinMillisecondsBetweenLines>
<ProlongEndTime>Previous text takes all gap time</ProlongEndTime>
<DivideEven>Texts divides gap time</DivideEven>
<DivideEven>Texts divide gap time</DivideEven>
</DurationsBridgeGaps>
<DvdSubRip>
<Title>Rip subtitles from IFO/VOBs (DVD)</Title>

View File

@ -80,7 +80,7 @@ namespace Nikse.SubtitleEdit.Logic
Actor = paragraph.Actor;
Effect = paragraph.Effect;
Layer = paragraph.Layer;
ID = paragraph.ID;
ID = GenerateId(); // Do not reuse unique ID
Language = paragraph.Language;
Style = paragraph.Style;
NewSection = paragraph.NewSection;