[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ocrad] internal error: character, index out of bounds
From: |
Dmitry Katsubo |
Subject: |
Re: [Bug-ocrad] internal error: character, index out of bounds |
Date: |
Wed, 11 Aug 2010 23:05:07 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100502 Shredder/3.0.5pre |
Hi Antonio!
I also caught this bug. If you can point me to OCRAD SVN/CVS location (I
missed it on mainpage), I would rather get patches from official v0.20
release tag up to HEAD, that include this fix as well.
Antonio Diaz Diaz wrote on 11.08.2010 18:34:
> Tilman Hausherr wrote:
>> I get this error:
>>
>> ocrad: internal error: character, index out of bounds
>
> Thanks for reporting this. Yes, I forgot to verify that the textline is
> not empty. Please, replace the offending line of code with the following:
>
> if( !l.characters() ||
> l.character( std::min( bi+1, l.characters() - 1 ) ).left() >
> b.hcenter() )
>
>
> Thanks and regards,
> Antonio.
--
With best regards,
Dmitry