mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Fix for continuing ocr - thx Janusz :)
Related to https://forum.doom9.org/showthread.php?t=162721&page=77
This commit is contained in:
parent
9b4b9760ec
commit
a65c42e346
@ -5161,6 +5161,15 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
|
||||
_mainOcrTimerMax = max;
|
||||
_mainOcrIndex = (int)numericUpDownStartNumber.Value - 1;
|
||||
if (_mainOcrIndex > 0)
|
||||
{
|
||||
var lastP = _subtitle.GetParagraphOrDefault(_mainOcrIndex - 1);
|
||||
if (lastP != null && !string.IsNullOrEmpty(lastP.Text))
|
||||
{
|
||||
_lastLine = lastP.Text;
|
||||
}
|
||||
}
|
||||
|
||||
_mainOcrTimer = new Timer();
|
||||
_mainOcrTimer.Tick += mainOcrTimer_Tick;
|
||||
_mainOcrTimer.Interval = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user