Changeset 8328 for trunk

Show
Ignore:
Timestamp:
09/01/12 17:47:56 (5 months ago)
Author:
epruesse
Message:

fix: lib/arb_default/edit4.arb ignored
(extra code for edit4_rna.arb etc. always used full-paths,

but GB_open(...,'D') needs relative path)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_root.cxx

    r8313 r8328  
    18661866    char *propname = NULL; 
    18671867 
    1868     for (int mode = 0; !propname && mode <= 2; ++mode) { // search for properties-database 
     1868    // check if edit4_?na.arb / edit4_ali_???.arb exist in .arb_props 
     1869    for (int mode = 0; !propname && mode <= 1; ++mode) {  
    18691870        const char *fullprop = GB_path_in_arbprop(ED4_propertyName(mode)); 
    1870         if (mode == 2 || GB_is_regularfile(fullprop)) { 
     1871        if (GB_is_regularfile(fullprop)) { 
    18711872            freedup(propname, fullprop); 
    18721873        } 
     1874    } 
     1875 
     1876    // if not, use 'mode 2', i.e. "edit4.arb" 
     1877    // (no full path, we want to load default from arb_defaults) 
     1878    if (!propname) { 
     1879        freedup(propname, ED4_propertyName(2)); 
    18731880    } 
    18741881