bugGNU Octave - Bugs: bug #53175, Variable Editor: modifying element...

 
 

bug #53175: Variable Editor: modifying element of cell array doesn't update cell array

Submitted by:  Dan Sebald <sebald>
Submitted on:  Sat 17 Feb 2018 04:07:51 AM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 09 Apr 2018 05:39:42 AM UTC, comment #5:

Oops, wrong bug report in Comment #4.

Dan Sebald <sebald>
Mon 09 Apr 2018 05:36:08 AM UTC, comment #4:

Attached is a fix for the focus not happening when the Variable Editor is in a hidden state. The solution is just to make sure that the Variable Editor is not hidden prior to doing all the other steps. Seems to work.

(file #43850)

Dan Sebald <sebald>
Mon 09 Apr 2018 04:47:02 AM UTC, comment #3:

Confirmed. Using the example in comment #1, the variable x in the Variable Editor does not update to 11x1 if I add another entry. It does update, as comment #2 says, if I go back to the Command Window and hit <RETURN>.

Rik <rik5>
Project Administrator
Mon 19 Feb 2018 06:12:59 AM UTC, comment #2:

Apparently, the "[10x1 double]" changes its value if I press enter in the command line (i.e, without issuing any command) after adding a row/column. This is most probably due to calling of update_description () when the variable editor is in picture. Still confused as to how it invokes update_description () when I press enter idly.

Sahil Yadav <batterylow>
Sat 17 Feb 2018 05:21:29 AM UTC, comment #1:

Here's a more direct illustration of the issue. Type

Open the column 1 width enough to see "[1x10 double]". Now double click the 1,1 cell of x and the x{1,1} table will open. In the x{1,1} table select "Transpose" and the contents of the 1,1 cell in x will become "[10x1 double]", which is correct. However, in the x{1,1} table expand the number of columns or rows by typing a zero in a blank cell and the "[10x1 double]" in the x table will not change.

Dan Sebald <sebald>
Sat 17 Feb 2018 04:07:51 AM UTC, original submission:

Try the following steps:

Now, in the V.E., double-click on the 2,3 cell that indicates "[2x2 double]" and the window a{2,3} appears. Now go back to the command window and type

(Leave off the semicolon so the contents is printed.) Look back at the V.E. Both the "a" and "a{2,3}" will have been updated properly; they both indicate "10". Now, go to the "a{2,3}" window and change the value of the 1,1 cell from 10 to 500. Look over in the "a" tab window and the cell at 2,3 still indicates "10". Go to the command line and look at "a":

which indicates "500". So the command is properly making its way back to the core, but the V.E. "a" tab window isn't being updated (which probably isn't noticeable when all it displays is "[2x2 double]").

Maybe it is as simply as calling "update ()", which is already done with a few editing operations, but not all.

Dan Sebald <sebald>

 

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

Attach Files:
   
   
Comment:
   

 

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 batterylow (Posted a comment)
  • -email is unavailable- added by sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-09 sebald Attached File- => Added octave-ve_focus_variable_from_hidden_state-djs2018apr08.patch, #43850
    2018-04-09 rik5 StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3