Minor update to change bin ocr db

This commit is contained in:
niksedk 2021-11-28 20:34:48 +01:00
parent d899af729a
commit 1b9e7799c4

View File

@ -29,6 +29,11 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Binary
public void Save() public void Save()
{ {
if (File.Exists(FileName))
{
File.Delete(FileName);
}
using (Stream gz = new GZipStream(File.OpenWrite(FileName), CompressionMode.Compress)) using (Stream gz = new GZipStream(File.OpenWrite(FileName), CompressionMode.Compress))
{ {
foreach (var bob in CompareImages) foreach (var bob in CompareImages)