Changeset 8510:3c9cc36482db in orange


Ignore:
Timestamp:
07/28/11 12:37:05 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
f9d40928ce3647a92b05dc97730c901d1d5874c0
Message:

Prevent a crash in NetworkCurve when trying to register points before it's added to a Plot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/networkcurve.cpp

    r8503 r8510  
    482482{ 
    483483    qDeleteAll(m_nodes); 
    484     plot()->remove_all_points(this); 
    485      
    486484    m_nodes = nodes; 
    487     foreach (NodeItem* node, nodes) 
    488     { 
    489         DataPoint p; 
    490         p.x = node->x(); 
    491         p.y = node->y(); 
    492         plot()->add_point(p, node, this); 
    493     } 
     485    register_points(); 
    494486} 
    495487 
Note: See TracChangeset for help on using the changeset viewer.