[etoys-notify] [JIRA] Created: (SQ-1111) Text cursor issues for empty Text objects

Scott Wallace (JIRA) tracker at squeakland.org
Fri Jul 13 21:41:15 EDT 2012


Text cursor issues for empty Text objects
-----------------------------------------

                 Key: SQ-1111
                 URL: http://tracker.squeakland.org/browse/SQ-1111
             Project: squeakland
          Issue Type: Bug
          Components: etoys
            Reporter: Scott Wallace
            Assignee: Scott Wallace
             Fix For: etoys 5.1
         Attachments: textCursorFixes-sw.cs.gz

(1)  If a Text morph has empty contents and you attempt to increase the value of its cursor (from a viewer, from a watcher, or through running a script that includes a statement of the form "Text's cursor increase by foo",) an error results (division by zero).

(2) The "cursor" for an empty text morph has been reported as 0, in contrast to the "cursor" for an empty Playfield, which by convention has always been 1.

The attached fileout, textCursorFixes-sw, purports to fix the error and also to make cursor reporting and setting for empty text be consistent with the handling of cursors for playfields that have empty contents.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the etoys-notify mailing list