[etoys-dev] Etoys: Morphic-kfr.59.mcz

commits at source.squeak.org commits at source.squeak.org
Sat May 21 17:14:42 EDT 2011


Karl Ramberg uploaded a new version of Morphic to project Etoys:
http://source.squeak.org/etoys/Morphic-kfr.59.mcz

==================== Summary ====================

Name: Morphic-kfr.59
Author: kfr
Time: 21 May 2011, 11:13:36 pm
UUID: 27a02fce-bc51-2d4c-a39a-2cb1c7a2f968
Ancestors: Morphic-kfr.58

The Ruler Object stops measuring when you rotate it
Kind of fixed

=============== Diff against Morphic-kfr.57 ===============

Item was changed:
  ----- Method: RulerMorph>>drawOn: (in category 'drawing') -----
+ drawOn: aCanvas 
+ 	| s aMorph |
- drawOn: aCanvas
- 
- 	| s |
  	super drawOn: aCanvas.
+ 	self isFlexed
+ 		ifTrue: [aMorph := self owner]
+ 		ifFalse: [aMorph := self].
+ 	s := aMorph width printString , 'x' , aMorph height printString.
+ 	aCanvas
+ 		drawString: s
+ 		in: (bounds insetBy: borderWidth + 5)
+ 		font: nil
+ 		color: Color red!
- 	s _ self width printString, 'x', self height printString.
- 	aCanvas drawString: s in: (bounds insetBy: borderWidth + 5) font: nil color: Color red.
- !



More information about the etoys-dev mailing list