Changeset 2234

Show
Ignore:
Timestamp:
03/02/08 03:03:54 (4 months ago)
Author:
arj..@yirdis.nl
Message:

fixed small bug that caused items (in Gaphor) to be drawn larger than the initial size

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/decorators.py

    r1794 r2234  
    77 
    88import gobject 
    9 from gobject import PRIORITY_HIGH, PRIORITY_HIGH_IDLE, PRIORITY_DEFAULT 
     9from gobject import PRIORITY_HIGH, PRIORITY_HIGH_IDLE, PRIORITY_DEFAULT, \ 
     10        PRIORITY_DEFAULT_IDLE, PRIORITY_LOW 
    1011import operator 
    1112 
  • gaphas/trunk/gaphas/tool.py

    r2173 r2234  
    611611        canvas = view.canvas 
    612612        new_item = self._create_item(context, event.x, event.y) 
     613        # Enforce matrix update, as a good matrix is required for the handle 
     614        # positioning: 
     615        canvas.get_matrix_i2c(new_item, calculate=True) 
    613616        self._handle_tool.grab_handle(new_item, 
    614617                                      new_item.handles()[self._handle_index])