bugGNU Octave - Bugs: bug #56260, msgbox with opt struct fails when...

 
 

bug #56260: msgbox with opt struct fails when no title specified

Submitter:  A.R. Burgers <arb>
Submitted:  Fri 03 May 2019 07:33:46 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 May 2019 09:05:38 PM UTC, comment #2: 

I checked in a fix on the development brach here (https://hg.savannah.gnu.org/hgweb/octave/rev/39b4341c3376).  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 03 May 2019 06:49:45 PM UTC, comment #1: 

Confirmed.  I don't get the gh_manager warning so for the moment let's just concentrate on the reproducible error.  This should be easy to fix requiring only a tweak in the input validation.

Rik <rik5>
Group administrator
Fri 03 May 2019 07:33:46 AM UTC, original submission:  

with this script:


% script msgbox_demo.m

opt.WindowStyle = 'modal';
opt.Interpreter = 'none';
msgbox('msgbox with a title', 'title', opt);
msgbox('msgbox without a title', '', opt);
msgbox('msgbox without a title', opt);


the first and 2nd msgboxes will be displayed, but the last call gives this error message, where I expected it to display the message in an undecorated msgbox


octave msgbox_demo.m
error: msgbox: TITLE must be a string
error: called from
    msgbox at line 98 column 5
    msgbox_demo at line 6 column 1
warning: gh_manager::do_close_all_figures: some graphics elements failed to close.


A work around is to specify an empty title.

By the way, when executed from the command line as octave msgbox_demo.m I get the gh_manager warning. Maybe this warrants a separate report.

A.R. Burgers <arb>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 arb (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-03 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2019-05-03 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code