Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
Hi Rik, the fix also works for another gui ofig that contains the uibuttongroup. Thanks.
Rik, thanks. I downloaded a copy.
I fixed the issue on the stable branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/e219aacda1e5). This will be a part of the 7.2 bug fix release. If you need the fix sooner you can just download the hdl2struct.m file from Octave's Mercurial repository and replace the file in your distribution with the new one.
Confirmed. My testing was on the development branch on a Linux machine so this issue is not specific to an OS or Octave version.
The code I used for testing is:
% Create figure and panel on it f = figure; % Create a button group gp = uibuttongroup (f, "Position", [ 0 0.5 1 1]) % Create a buttons in the group b1 = uicontrol (gp, "style", "radiobutton", ... "string", "Choice 1", ... "Position", [ 10 150 100 50 ]); b2 = uicontrol (gp, "style", "radiobutton", ... "string", "Choice 2", ... "Position", [ 10 50 100 30 ]); % Create a button not in the group b3 = uicontrol (f, "style", "radiobutton", ... "string", "Not in the group", ... "Position", [ 10 50 100 50 ]); savefig mytst.ofig close all openfig mytst.ofig
I cannot load any ofig file which contains uibuttongroup. Thanks.
(1) use the uibuttongroup example in Octave help.
% Create figure and panel on it f = figure; % Create a button group gp = uibuttongroup (f, "Position", [ 0 0.5 1 1]) % Create a buttons in the group b1 = uicontrol (gp, "style", "radiobutton", ... "string", "Choice 1", ... "Position", [ 10 150 100 50 ]); b2 = uicontrol (gp, "style", "radiobutton", ... "string", "Choice 2", ... "Position", [ 10 50 100 30 ]); % Create a button not in the group b3 = uicontrol (f, "style", "radiobutton", ... "string", "Not in the group", ... "Position", [ 10 50 100 50 ]);
(2) save the figure as ofig (3) double click the ofig in octave gui (4) error message below will show. This error message is ofig dependent. Other ofig may cause different error message.
>> warning: base_graphics_object::get_properties: invalid graphics object
warning: called from struct2hdl>setprops at line 655 column 10 struct2hdl at line 213 column 3 struct2hdl at line 206 column 15 hgload at line 105 column 10 openfig at line 120 column 8 open at line 116 column 7
error: set: invalid value for selectedobject property error: called from struct2hdl>setprops at line 655 column 10 struct2hdl at line 213 column 3 struct2hdl at line 206 column 15 hgload at line 105 column 10 openfig at line 120 column 8 open at line 116 column 7
(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
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 project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 6 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9