Skip to content

Commit 0519202

Browse files
authored
1.300 업데이트 (#117)
* 번역 도중 취소시 예외처리 * One OCR 구조 임시 처리 * one ocr을 불러올 수 없는 문제 수정 * 오버레이 번역창에서 one ocr을 사용할 수 있또록 변경 * 공용 OCR 언어 코드 전환 작업 Snipping Tool OCR 임시 엄어 대응 * 1.300 업데이트 * 리드미 갱신
1 parent fa6d1e5 commit 0519202

24 files changed

+1137
-438
lines changed

MORT/ColorThief/ColorThief.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,20 @@ static private byte[][] GetPixelsFast(in byte[] imageData, int originalX, int or
6161
// numRegardedPixels must be rounded up to avoid an
6262
// ArrayIndexOutOfBoundsException if all pixels are good.
6363

64-
var numRegardedPixels = (quality <= 0) ? 0 : (rect.Height * (int)Math.Ceiling((double)rect.Width / quality));
64+
long numRegardedPixels = (quality <= 0) ? 0 : (rect.Height * (int)Math.Ceiling((double)rect.Width / quality));
6565

6666
var numUsedPixels = 0;
67-
var pixelArray = new byte[numRegardedPixels][];
67+
byte[][] pixelArray = null;
68+
69+
try
70+
{
71+
pixelArray = new byte[numRegardedPixels][];
72+
}
73+
catch(Exception e)
74+
{
75+
Util.ShowLog($"Error in GetPixelsFast init: {e.Message} ");
76+
}
77+
6878

6979
int lastOffset = 0;
7080
int lastX = 0;

MORT/Form1.Designer.cs

Lines changed: 60 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)