Changeset 11203:7dc5309b3942 in orange


Ignore:
Timestamp:
11/26/12 13:57:53 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Check for None in toGraphicsObjectIfPossible, fix event filter return values.

Location:
Orange/OrangeCanvas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/items/utils.py

    r11180 r11203  
    5656 
    5757    """ 
     58    if item is None: 
     59        return None 
     60 
    5861    obj = item.toGraphicsObject() 
    5962    return item if obj is None else obj 
  • Orange/OrangeCanvas/document/interactions.py

    r11202 r11203  
    561561            self.scene.addItem(self.rect_item) 
    562562        self.update_selection(event) 
     563        return True 
    563564 
    564565    def mouseReleaseEvent(self, event): 
    565566        self.update_selection(event) 
    566567        self.end() 
     568        return True 
    567569 
    568570    def update_selection(self, event): 
Note: See TracChangeset for help on using the changeset viewer.