[squeak-dev] The Trunk: Graphics-nice.247.mcz

Chris Muller asqueaker at gmail.com
Thu Oct 3 15:00:53 UTC 2013


Ah, much better.  Thank you!

On Thu, Oct 3, 2013 at 7:59 AM,  <commits at source.squeak.org> wrote:
> Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-nice.247.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-nice.247
> Author: nice
> Time: 3 October 2013, 2:59:08.347 pm
> UUID: 17c8bf48-139a-42f5-8032-ae3045f4b265
> Ancestors: Graphics-nice.246
>
> Restore correct width of embedded morphs (recent regression).
>
> =============== Diff against Graphics-nice.246 ===============
>
> Item was changed:
>   ----- Method: CharacterBlockScanner>>retrieveLastCharacterWidth (in category 'private') -----
>   retrieveLastCharacterWidth
>         | lastCharacter |
>         lastIndex > text size ifTrue: [^lastCharacterWidth := 0].
> +       specialWidth ifNotNil: [^lastCharacterWidth := specialWidth].
>         lastCharacter := text at: lastIndex.
>         (lastCharacter charCode >= 256 or: [(stopConditions at: lastCharacter charCode + 1) isNil])
>                 ifTrue: [lastCharacterWidth := font widthOf: (text at: lastIndex)].
>         "if last character was a stop condition, then the width is already set"
>         ^lastCharacterWidth!
>
>


More information about the Squeak-dev mailing list