|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ocrad] internal error: character, index out of bounds |
Date: | Wed, 11 Aug 2010 18:34:52 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |