<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi!<br>
</font></p>
<p><font size="4">I have this problem that drives me nuts. I have
this text object in DrGeo, its view is a TextComposition.
Whenever I edit it with two lines, the second line and the
following are not rendered, The view extent is correctly
computed though.<br>
</font></p>
<img moz-do-not-send="false"
src="cid:part1.vRmRp6Jw.yMP2Tx7w@drgeo.eu" alt="" width="388"
height="229">
<p><font size="4">I fail to see anything wrong. The text is a
String, the carriage return in the text is byte decimal value
10.</font></p>
<p><font size="4">The view is updated as follow:</font></p>
<pre><font size="4">DrGTextMorph>>contents: aStringOrText
   textComposition textComposed ~= aStringOrText ifTrue: [
      textComposition     Â
         setModel: (TextModel withText: aStringOrText);
         composeAll.
      extent _ textComposition usedExtent + 8]
</font></pre>
<p><font size="4">and drawing:<br>
</font></p>
<pre><font size="4">DrGTextMorph>>drawOn: aCanvas
   | r |
   self contents: mathItem text.
   r _ self labelPosition extent: extent.
   self drawFrame: r on: aCanvas.
   aCanvas
      textComposition: textComposition
      bounds: (r insetBy: 4)
      color: color
      selectionColor: `Color red`.
</font></pre>
<p>Any ideas?</p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>