From 9b613c9b2a5ac6e92d0866e1bd43f0b588fef4dc Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Fri, 22 Mar 2024 23:23:36 +0000 Subject: [PATCH] Fix subscript in OcrFixEngine The index for array 'ar' was incorrectly set to 0. This commit corrects the subscript to 1, ensuring that the variable 'b' is correctly assigned. --- src/ui/Logic/Ocr/OcrFixEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Logic/Ocr/OcrFixEngine.cs b/src/ui/Logic/Ocr/OcrFixEngine.cs index b75d931b0..fec966af4 100644 --- a/src/ui/Logic/Ocr/OcrFixEngine.cs +++ b/src/ui/Logic/Ocr/OcrFixEngine.cs @@ -1957,7 +1957,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr a = a[0] + a.Substring(1).ToLowerInvariant(); } - var b = ar[0]; + var b = ar[1]; if (b == b.ToUpperInvariant()) { b = b[0] + b.Substring(1).ToLowerInvariant();