Changeset 8357:d6d43132640c in orange


Ignore:
Timestamp:
07/05/11 13:00:05 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
93f41dc11dbb9c26592d3595a310151eaf44d187
Message:

Avoid crash when trying to detach an Item that's already not attached to any graph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangegraph/plotitem.cpp

    r8354 r8357  
    3636void PlotItem::detach() 
    3737{ 
    38     m_graph->removeItem(this); 
     38    if (m_graph) 
     39    { 
     40        m_graph->removeItem(this); 
     41    } 
    3942} 
    4043 
Note: See TracChangeset for help on using the changeset viewer.