Changeset 7733:04c46694a693 in orange


Ignore:
Timestamp:
03/11/11 11:34:01 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
14fe6e6550cd4200245367c7a9ad0b14f4a0278c
Message:

Fixed a Sieve Diagram crash in Mac OSX bundle (random.randint and non integer argument).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize/OWSieveDiagram.py

    r7039 r7733  
    230230        # get text width of Y attribute name 
    231231        text = OWCanvasText(self.canvas, data.domain[self.attrY].name, x  = 0, y = 0, bold = 1, show = 0) 
    232         xOff = text.boundingRect().width() + 40 
     232        xOff = int(text.boundingRect().width() + 40) 
    233233        yOff = 50 
    234234        sqareSize = min(self.canvasView.width() - xOff - 35, self.canvasView.height() - yOff - 30) 
Note: See TracChangeset for help on using the changeset viewer.