bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] internal error: insert_space, track not set yet.


From: Tilman Hausherr
Subject: [Bug-ocrad] internal error: insert_space, track not set yet.
Date: Mon, 16 Aug 2010 15:52:18 +0200 (CEST)

Hello Antonio,

I get 

   ocrad: internal error: insert_space, track not set yet

for an image, both with Visual Studio and with an unmodified gcc+cygwin
version, because Textline::insert_spaces() and insert_space( last, true
) hit an empty Track.

in textblock.cc, Textblock::Textblock, this code

  // Create tracks of lines.
  for( int i = 0; i < textlines(); ++i ) tlpv[i]->set_track();

textlines() is 1, but it does not insert any track, because 

in Track::set_track(), rectangle_vector.size() is 0, thus no tracks are
written.

Because, in Textline::set_track(), rv stays empty, because cpv is empty.

So in other words, at "// Create tracks of lines", tlpv[0]->cpv is empty.


I also noticed that pending is empty, pending_tall and pending_short are
not empty, so the block below

    if( pending.size() )

is not reached - that block would apparently fill cpv.


I don't have a test image yet that I can send, maybe later.

Tilman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]