octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53858] Octave crashes when expanding an array


From: Rik
Subject: [Octave-bug-tracker] [bug #53858] Octave crashes when expanding an array of a sub-structure viewed by Variable Editor
Date: Fri, 8 Feb 2019 12:28:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #53858 (project octave):

The original example still creates an endless loop for me.

I can understand what is going on, but don't have a fix just yet.  When the
variable editor windows are first set up a.b is a scalar struct, and the
sub-window is displaying 'a.b.e'.  When the code


a.b(2).c = 'string';


is executed the class of a.b changes from scalar struct to struct array. 
Therefore, 'a.b.e' now returns a cell array equivalient to 'a.b(:).e'.  The
Variable Editor is not expecting a cell array and throws errors.

If you then close the 'a.b.e' tab, and re-open it by double-clicking on the
original entry, it showes 'a.b(1).e'.

So, when the class changes we need to reflect that in the indexing expression
used.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53858>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]