Ignore:
Timestamp:
11/28/12 12:31:29 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed anchor point layout order reset while dragging (creating) a new link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/scene.py

    r11202 r11207  
    390390        """Remove a link (:class:`LinkItem`) from the scene. 
    391391        """ 
     392        # Invalidate the anchor layout. 
     393        self.__anchor_layout.invalidateAnchorItem( 
     394            item.sourceItem.outputAnchorItem 
     395        ) 
     396        self.__anchor_layout.invalidateAnchorItem( 
     397            item.sinkItem.inputAnchorItem 
     398        ) 
     399 
    392400        self.__link_items.remove(item) 
    393401 
     
    395403        item.removeLink() 
    396404        self.removeItem(item) 
     405 
    397406        self.link_item_removed.emit(item) 
    398407 
Note: See TracChangeset for help on using the changeset viewer.