@@ -417,6 +417,8 @@ bool Tesseract::process_cmd_win_event( // UI command semantics
417
417
break ;
418
418
}
419
419
420
+ char * parameter;
421
+
420
422
switch (cmd_event) {
421
423
case NULL_CMD_EVENT:
422
424
break ;
@@ -432,7 +434,9 @@ bool Tesseract::process_cmd_win_event( // UI command semantics
432
434
break ;
433
435
case DEBUG_WERD_CMD_EVENT:
434
436
mode = DEBUG_WERD_CMD_EVENT;
435
- word_config_ = image_win->ShowInputDialog (" Config File Name" );
437
+ parameter = image_win->ShowInputDialog (" Config File Name" );
438
+ word_config_ = parameter;
439
+ delete[] parameter;
436
440
break ;
437
441
case BOUNDING_BOX_CMD_EVENT:
438
442
if (new_value[0 ] == ' T' )
@@ -762,7 +766,6 @@ bool Tesseract::word_display(PAGE_RES_IT* pr_it) {
762
766
int word_height; // ht of word BB
763
767
bool displayed_something = false ;
764
768
float shift; // from bot left
765
- C_BLOB_IT c_it; // cblob iterator
766
769
767
770
if (color_mode != CM_RAINBOW && word_res->box_word != nullptr ) {
768
771
BoxWord* box_word = word_res->box_word ;
@@ -831,7 +834,8 @@ bool Tesseract::word_display(PAGE_RES_IT* pr_it) {
831
834
ScrollView::Color c = (ScrollView::Color)
832
835
((int32_t ) editor_image_blob_bb_color);
833
836
image_win->Pen (c);
834
- c_it.set_to_list (word->cblob_list ());
837
+ // cblob iterator
838
+ C_BLOB_IT c_it (word->cblob_list ());
835
839
for (c_it.mark_cycle_pt (); !c_it.cycled_list (); c_it.forward ())
836
840
c_it.data ()->bounding_box ().plot (image_win);
837
841
displayed_something = true ;
0 commit comments