The Trunk: Graphics-nice.247.mcz

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

The Trunk: Graphics-nice.247.mcz

commits-2
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!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Graphics-nice.247.mcz

Chris Muller-3
Ah, much better.  Thank you!

On Thu, Oct 3, 2013 at 7:59 AM,  <[hidden email]> 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!
>
>