Changeset 1110
- Timestamp:
- 12/14/06 14:23:42 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/branches/new-canvas/gaphor/diagram/activitynodes.py
r1104 r1110 203 203 Update join specification position. 204 204 """ 205 self._join_spec_x, self._join_spec_y = get_text_point( 206 text_extents(context.cairo, self.subject.joinSpec.value), 207 self.width, self.height, 208 (ALIGN_CENTER, ALIGN_TOP), 209 (10, 0, 0, 0), 210 True) 205 if isinstance(self.subject, UML.JoinNode): 206 self._join_spec_x, self._join_spec_y = get_text_point( 207 text_extents(context.cairo, self.subject.joinSpec.value), 208 self.width, self.height, 209 (ALIGN_CENTER, ALIGN_TOP), 210 (10, 0, 0, 0), 211 True) 211 212 super(ForkNodeItem, self).update(context) 212 213 … … 223 224 cr.move_to(self.name_x, self.name_y) 224 225 225 cr.move_to(self._join_spec_x, self._join_spec_y) 226 cr.show_text(self.subject.joinSpec.value) 226 if isinstance(self.subject, UML.JoinNode): 227 cr.move_to(self._join_spec_x, self._join_spec_y) 228 cr.show_text(self.subject.joinSpec.value) 227 229 228 230 cr.stroke()
