<div dir="ltr"><div>Yes, that's one way to fix it.</div><div>The other is in asHTMLColor</div><div>See <a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-May/202392.html">http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-May/202392.html</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 9 sept. 2019 à 19:54, <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of Graphics was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Graphics-ct.413.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Graphics-ct.413.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Graphics-ct.413<br>
Author: ct<br>
Time: 9 September 2019, 7:54:08.629903 pm<br>
UUID: 3e468ae2-a322-c847-81b2-4029a9ecf6dd<br>
Ancestors: Graphics-mt.410<br>
<br>
Color>>#printHtmlString: Use rounding instead of truncations<br>
<br>
Fixes #testPrintHtmlString<br>
<br>
=============== Diff against Graphics-mt.410 ===============<br>
<br>
Item was changed:<br>
  ----- Method: Color>>printHtmlString (in category 'html') -----<br>
  printHtmlString<br>
        "answer a string whose characters are the html representation  <br>
        of the receiver"<br>
+       ^ ((self red * 255) rounded printStringBase: 16 length: 2 padded: true)<br>
+               , ((self green * 255) rounded printStringBase: 16 length: 2 padded: true)<br>
+               , ((self blue * 255) rounded printStringBase: 16 length: 2 padded: true)!<br>
-       ^ ((self red * 255) asInteger printStringBase: 16 length: 2 padded: true)<br>
-       , ((self green * 255) asInteger printStringBase: 16 length: 2 padded: true)<br>
-       , ((self blue * 255) asInteger printStringBase: 16 length: 2 padded: true)!<br>
<br>
<br>
</blockquote></div>