Changeset 10737:f96a8c6972ef in orange


Ignore:
Timestamp:
04/03/12 23:18:25 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Message:

Fixed an obscure bug in ExampleTable.save that probably never occurred: if specific symbols were given for DK and DC, and the class value was missing, all meta variables were saved as unknown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/tabdelim.cpp

    r9431 r10737  
    922922      if (!(*mi).optional) { 
    923923        PUTDELIM; 
    924         if (DK && ((*ri).valueType == valueDK)) 
     924        const TValue &mval = (*ex)[(*mi).id]; 
     925        if (DK && (mval.valueType == valueDK)) 
    925926          fprintf(file, DK); 
    926         else if (DC && ((*ri).valueType == valueDC)) 
     927        else if (DC && (mval.valueType == valueDC)) 
    927928          fprintf(file, DC); 
    928929        else { 
    929           (*mi).variable->val2filestr((*ex)[(*mi).id], st, *ex); 
     930          (*mi).variable->val2filestr(mval, st, *ex); 
    930931          fprintf(file, "%s", checkCtrl(st.c_str())); 
    931932        } 
Note: See TracChangeset for help on using the changeset viewer.