Changeset 8871:47774e4542c0 in orange


Ignore:
Timestamp:
09/01/11 11:04:37 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
f79dfe688413419d1f966ae2a0ba29755a0fb726
Message:

Ignore comments (#) while reading Pajek files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeom/graph_layout.cpp

    r8778 r8871  
    15231523            } 
    15241524 
    1525             if  (hasGraph && (words[0].compare("*date") == 0)) { 
     1525            if  ((hasGraph && (words[0].compare("*date") == 0)) || words[0][0]=='#') { 
    15261526                continue; 
    15271527            } 
     
    15301530                hasGraph = 0; 
    15311531            else 
     1532            { 
     1533                cout << words[0] << endl; 
    15321534                PYERROR(PyExc_SystemError, "Invalid file format. Invalid keyword.", PYNULL); 
     1535            } 
    15331536        } 
    15341537    } 
Note: See TracChangeset for help on using the changeset viewer.