Changeset 442

Show
Ignore:
Timestamp:
Wed Jun 11 02:23:47 2008
Author:
Brian
Message:

Correct drawing sequence for objectified fact types

Files:

Legend:

Unmodified
Added
Removed
Modified
  • scripts/trunk/Object Role Modeling/Copy Diagram to Clipboard as EMF (Windows Only).py

    r417 r442  
    3 3  
    4 4 # 080603 - start first draft  
      5 # 080611 - fix draw order for objectified fact types  
    5 6  
    6 7 import wx  
     
    9 10  
    10 11 def Draw(report, dc):  
    11       all_shapes = report.GetList('GraphicObject')  # graphic objects that point to this report  
      12 ##    all_shapes = report.GetList('GraphicObject')  # graphic objects that point to this report  
      13     # must draw shapes in the right order or objectified facttype may be reversed  
      14     all_shapes = [ self.Report.win.dcid_to_shape_xref.get(dcid) for dcid in self.Report.win.objids ]  
    12 15     if any([ shape.IsSelected for shape in all_shapes ]):  
    13 16         for shape in all_shapes: