Show
Ignore:
Timestamp:
14/01/10 15:10:39 (2 years ago)
Author:
westram
Message:
  • removed useless variable 'species_read'
  • fixed overflow if too many missing species in configuration
    • shortened error message (show only first 200 missing species)
  • moved some duplicated code into ED4_init_notFoundMessage / ED4_finish_and_show_notFoundMessage
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_root.cxx

    r6348 r6353  
    660660    aw_root->add_timed_callback(2000,ED4_timer,(AW_CL)0,(AW_CL)0); 
    661661 
    662     char *out_message = GBS_strclose(not_found_message); 
    663     not_found_message = 0; 
    664     if (all_found != 0) aw_message(out_message); 
    665     free(out_message); 
     662    ED4_finish_and_show_notFoundMessage(); 
    666663 
    667664    return ( ED4_R_OK ); 
     
    18791876    DRAW                    = 1; 
    18801877    move_cursor             = 0; 
    1881     all_found               = 0; 
    1882     species_read            = 0; 
    18831878    max_seq_terminal_length = 0; 
    18841879 
    1885     not_found_message = GBS_stropen(1000); 
    1886  
    1887     GBS_strcat(not_found_message,"Some species not found:\n"); 
     1880    ED4_init_notFoundMessage(); 
    18881881 
    18891882    return ( new_window->aww );