The Trunk: Morphic-mt.798.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.798.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.798.mcz

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

Name: Morphic-mt.798
Author: mt
Time: 1 April 2015, 10:34:38.43 am
UUID: b8569c16-d9cb-a24e-b4d5-a6b7f6abd7ba
Ancestors: Morphic-mt.797

Fixes error that may occur in empty lazy lists when mapping a point to a row index.

=============== Diff against Morphic-mt.797 ===============

Item was changed:
  ----- Method: LazyListMorph>>rowAtLocation: (in category 'list management') -----
  rowAtLocation: aPoint
  "return the number of the row at aPoint"
  | y |
  y := aPoint y.
+ y < self top ifTrue: [ ^ 1 min: listItems size ].
- y < self top ifTrue: [ ^ 1 ].
  ^((y - self top // (font height)) + 1) min: listItems size max: 0!