Changeset 8414:0a94e3251779 in orange


Ignore:
Timestamp:
07/22/11 11:27:52 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
14a4adb1fcc7a6e8ef7f0f98ddb4fb130093a2be
Message:

Make sure items removed from a plot are removed from the scene as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/plot.cpp

    r8376 r8414  
    3939        m_items.removeAll(item); 
    4040        item->m_plot = 0; 
     41        if (scene()->items().contains(item)) 
     42        { 
     43            scene()->removeItem(item); 
     44        } 
    4145    } 
    4246    else 
Note: See TracChangeset for help on using the changeset viewer.