bugGNU Octave - Bugs: bug #56386, gtext should create a text object...

 
 

bug #56386: gtext should create a text object for each row in input string

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Sat 25 May 2019 08:27:06 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 26 May 2019 12:45:07 AM UTC, comment #2: 

Awesome.  I checked in the patch here (https://hg.savannah.gnu.org/hgweb/octave/rev/d6372c07bac2).

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sat 25 May 2019 08:39:41 AM UTC, comment #1: 

Sorry in french we use the same word for "line" and "row". So my explanation should read "...each row in the input string...". I attached a second patch that corrects this in the doc.

(file #46972)

Pantxo Diribarne <pantxo>
Group Member
Sat 25 May 2019 08:27:06 AM UTC, original submission:  

gtext currently has a few issues. According to ML doc, each line in the input string, whether it is a char array or a cell string, should be attached to a mouse click. The following currently produces 4 strings after 4 clicks and only returns one handle to the latest text object:


h = gtext ({"I clicked", "here"; "and", "there"})


With the attached patch the above will produce 2 strings (with 2 lines each) after 2 mouse clicks and return 2 handles.
The patch also allows using char arrays, and clarifies the doc (with examples).

Pantxo Diribarne <pantxo>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46972:  gtext_rows2.patch added by pantxo (3KiB - text/x-patch)
file #46971:  gtext_rows.patch added by pantxo (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-26 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
        Summarygtext should create a text objet for each row in input string gtext should create a text object for each row in input string
    2019-05-25 pantxo Summarygtext should create a text objet for each line in input string gtext should create a text objet for each row in input string
    2019-05-25 pantxo Attached File- Added gtext_rows2.patch, #46972
    2019-05-25 pantxo Attached File- Added gtext_rows.patch, #46971
        StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code