Changeset 10747:f4ce380e0a14 in orange


Ignore:
Timestamp:
04/04/12 15:13:16 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
2fa6748acafaba23710adb71aa85d6a8436bbea6
Message:

Fixed construction of an Instance for an empty domain when an explicit empty list is supplied to the constructor (i.e. Instance(empty_domain, []))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/cls_example.cpp

    r10589 r10747  
    7272  TVarList::const_iterator const ve(dom->variables->end()); 
    7373  TVarList::const_iterator const ce(dom->classVars->end()); 
    74   while(vi != ce) { 
     74  while(vi != ce && vi != ve) { 
    7575    PyObject *li=PyList_GetItem(lst, pos++); 
    7676    if (!li) 
Note: See TracChangeset for help on using the changeset viewer.