From f5c48a6b435505c72a0b8d7d15f83e5783717787 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Mon, 5 Apr 2010 11:27:16 +0200 Subject: [PATCH] Small cleanup in mmlpsthread. Bugfix in OCR. --- Units/MMLAddon/mmlpsthread.pas | 17 ----------------- Units/MMLCore/ocr.pas | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/Units/MMLAddon/mmlpsthread.pas b/Units/MMLAddon/mmlpsthread.pas index c0d7d03..c9d18ee 100644 --- a/Units/MMLAddon/mmlpsthread.pas +++ b/Units/MMLAddon/mmlpsthread.pas @@ -476,23 +476,6 @@ end; {***implementation TPSThread***} -{ - Note to Raymond: For PascalScript, Create it on the .Create, - Execute it on the .Execute, and don't forget to Destroy it on .Destroy. - - Furthermore, all the wrappers can be in the unit "implementation" section. - Better still to create an .inc for it, otherwise this unit will become huge. - (You can even split up the .inc's in stuff like color, bitmap, etc. ) - - Also, don't add PS to this unit, but make a seperate unit for it. - Unit "MMLPSThread", perhaps? - - See the TestUnit for use of this thread, it's pretty straightforward. - - It may also be wise to turn the "Importing of wrappers" into an include as - well, it will really make the unit more straightforward to use and read. -} - constructor TPSThread.Create(CreateSuspended : boolean; TheSyncInfo : PSyncInfo; plugin_dir: string); var I : integer; diff --git a/Units/MMLCore/ocr.pas b/Units/MMLCore/ocr.pas index 91e7475..0401231 100644 --- a/Units/MMLCore/ocr.pas +++ b/Units/MMLCore/ocr.pas @@ -808,7 +808,7 @@ begin if (tpa[j].x) + ((tpa[j].y) * fD.width) <= high(n) then n[(tpa[j].x) + ((tpa[j].y) * fD.width)] := 1 else - raise Exception.Create('The automatically split characters are too wide. Try decreasing minspacing'); + mDebugLn('The automatically split characters are too wide. Try decreasing minspacing'); end; result := result + GuessGlyph(n, fD); end;