[Balloon] [Bug+Fix] in BalloonCanvas>>drawString: ...

Jens Lincke jens at impara.de
Mon Nov 27 21:49:21 UTC 2006


here is the changeset

Andreas Raab schrieb:
> Can you email me the patch?
>
> Thanks,
>   - Andreas
>
> Jens Lincke wrote:
>> Hi,
>>
>> I found a bug in the BalloonCanvas when drawing a String with an 
>> offset transformation
>>
>> the method
>> drawString: s from: firstIndex to: lastIndex in: boundsRect font: 
>> fontOrNil color: c
>> was marked TODO and did only draw when it can fall back to FormCanvas
>>
>> But the offset in the Transformation was ignored, so I changed it into:
>>
>> drawString: s from: firstIndex to: lastIndex in: boundsRect font: 
>> fontOrNil color: c
>>   (self ifNoTransformWithIn: boundsRect)
>>       ifTrue:[ | offset |
>>       offset := transform a13 @ transform a23.
>>
>>       ^super drawString: s from: firstIndex to: lastIndex in: 
>> boundsRect + offset font: fontOrNil color: c]
>>
>>
>> and uploaded a iSqueak3.8 package Balloon-jl.4 to the 
>> source.impara.de/Stuff
>>
>> - Jens Lincke -
>>
>> _______________________________________________
>> Balloon mailing list
>> Balloon at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/balloon
>>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Balloon-Fix-drawString-offset.1.cs.gz
Type: application/x-gzip
Size: 309 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/balloon/attachments/20061127/b84b6e04/Balloon-Fix-drawString-offset.1.cs.bin


More information about the Balloon mailing list