From 788b7e3d1148771e3a06a535c6d607791dcd22e9 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 13 May 2013 18:19:16 +0200 Subject: [PATCH] reporting: bug fix: only assign a tempname to figname when one doesn't already exist --- matlab/reports/@graph/createGraph.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/reports/@graph/createGraph.m b/matlab/reports/@graph/createGraph.m index d4191677f..f5a2da6ba 100644 --- a/matlab/reports/@graph/createGraph.m +++ b/matlab/reports/@graph/createGraph.m @@ -126,7 +126,9 @@ if ~isempty(o.ylabel) end drawnow; -o.figname = [tempname '.tex']; +if isempty(o.figname) + o.figname = [tempname '.tex']; +end disp(' converting to tex....'); if exist('OCTAVE_VERSION') print(o.figname, '-dtikz');