Changeset 9291:ce053dabf682 in orange


Ignore:
Timestamp:
12/01/11 16:30:51 (2 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
0a8fadab5db85fb68e2ae163048ee4aab808a1b2
Message:

Fixed a bug in Ordinal2Continuous (references #1021)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/transval.cpp

    r7665 r9291  
    120120  if (val.isSpecial()) 
    121121    val = TValue(TValue::FLOATVAR, val.valueType); 
    122   if (val.varType!=TValue::INTVAR) 
     122  else if (val.varType!=TValue::INTVAR) 
    123123    raiseError("invalid value type (discrete expected)"); 
    124  
    125   val = TValue(float(val.intV) * factor); 
     124  else 
     125    val = TValue(float(val.intV) * factor); 
    126126} 
    127127 
Note: See TracChangeset for help on using the changeset viewer.