Skip to content
Snippets Groups Projects
Verified Commit 7dccbef6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

One last Octave compatibility fix

Closes: #1749
(cherry picked from commit b74c37d5)
parent 2c7da49a
Branches
Tags
No related merge requests found
......@@ -1007,3 +1007,10 @@ if isoctave
else
warning on
end
if isoctave && isfield(options_, 'prior_restrictions') && ...
isfield(options_.prior_restrictions, 'routine')
% Octave crashes if it tries to save function handles (to the _results.mat file)
% See https://savannah.gnu.org/bugs/?43215
options_.prior_restrictions.routine = [];
end
......@@ -229,3 +229,9 @@ options_.mode_file = mode_file0;
%reset stored mode-file to user defined one (and in case it was only set by the recursive estimation)
oo_.gui.ran_estimation = true;
if isoctave && isfield(options_, 'prior_restrictions') && ...
isfield(options_.prior_restrictions, 'routine')
% Octave crashes if it tries to save function handles (to the _results.mat file)
% See https://savannah.gnu.org/bugs/?43215
options_.prior_restrictions.routine = [];
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment