From d250f17ceda9e81ed6bc0cad67e517ea7621ca39 Mon Sep 17 00:00:00 2001
From: Antoine Merle <Antoine.Merle@epfl.ch>
Date: Wed, 16 Mar 2016 08:29:28 +0000
Subject: [PATCH] Bugfix: replace prod with all in gdat_plot

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5548 d63d8f72-b253-0410-a779-e742ad2e26cf
---
 crpptbx/gdat_plot.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crpptbx/gdat_plot.m b/crpptbx/gdat_plot.m
index 8282386d..590723d6 100644
--- a/crpptbx/gdat_plot.m
+++ b/crpptbx/gdat_plot.m
@@ -35,7 +35,7 @@ elseif isfield(gdat_data.gdat_params,'doplot') || ~isempty(gdat_data.gdat_params
 end
 if doplot==0; return; end
 
-if prod(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty(gdat_data.t)
+if all(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty(gdat_data.t)
   fighandle = get(0,'CurrentFigure');
   if gdat_data.gdat_params.doplot == 1
     fighandle = figure;
-- 
GitLab