Changeset 8637:79878e7d3ec3 in orange


Ignore:
Timestamp:
08/09/11 12:03:43 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
ae69a547d8215b93017b5ad06d570a3433dd710e
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/networkcurve.cpp

    r8636 r8637  
    857857void NetworkCurve::set_node_colors(const QMap<int, QColor>& colors) 
    858858{ 
    859     QMap<int, QColor*>::ConstIterator it; 
     859    QMap<int, QColor>::ConstIterator it; 
    860860    for (it = colors.constBegin(); it != colors.constEnd(); ++it) 
    861861    { 
    862         m_nodes[it.key()]->set_color(*it.value()); 
     862        m_nodes[it.key()]->set_color(it.value()); 
    863863    } 
    864864} 
     
    10141014    { 
    10151015        QPen p = m_edges[i]->pen(); 
    1016         p.setColor(*colors[i]); 
     1016        p.setColor(colors[i]); 
    10171017        m_edges[i]->setPen(p); 
    10181018    } 
Note: See TracChangeset for help on using the changeset viewer.