Commit 90d74ad7 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: fix bug in creating table when data option is passed to constructor

parent 74825a17
......@@ -120,11 +120,11 @@ assert(ischar(o.tableDirName), '@report_table.report_table: tableDirName must be
if ~isempty(o.data)
if isempty(o.seriesToUse)
for i=1:o.data.vobs
o = o.addSeries('data', o.data{o.data.name{i}});
o.series{end+1} = report_series('data', o.data{o.data.name{i}});
end
else
for i=1:length(o.seriesToUse)
o = o.addSeries('data', o.data{o.seriesToUse{i}});
o.series{end+1} = report_series('data', o.data{o.seriesToUse{i}});
end
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment