From 90d74ad7a77d1d2b74ac9bcf64ec4fdd91073911 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 9 Jul 2014 15:43:14 +0200
Subject: [PATCH] reporting: fix bug in creating table when data option is
 passed to constructor

---
 @report_table/report_table.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/@report_table/report_table.m b/@report_table/report_table.m
index 3fc1e2a..ee641d3 100644
--- a/@report_table/report_table.m
+++ b/@report_table/report_table.m
@@ -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
-- 
GitLab