Ignore:
Timestamp:
05/29/13 13:46:03 (11 months ago)
Author:
Jure Zbontar <jure.zbontar@…>
Branch:
default
Message:

Fix PyQt version comparison bug

File:
1 edited

Legend:

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

    r11464 r11558  
    771771        return items[0] if items else None 
    772772 
    773     if PYQT_VERSION_STR < "4.9": 
     773    if map(int, PYQT_VERSION_STR.split('.')) < [4, 9]: 
    774774        # For QGraphicsObject subclasses items, itemAt ... return a 
    775775        # QGraphicsItem wrapper instance and not the actual class instance. 
Note: See TracChangeset for help on using the changeset viewer.