Skip to content
Snippets Groups Projects
Commit cc5c4529 authored by Laura Nervo's avatar Laura Nervo
Browse files

GtThreshold : fixed bug with title for GtGauge

GtGauge     : fixed bug if no arguments for title

Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>
parent e43fb26f
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ classdef GtThreshold < handle
phaseDir = fullfile(obj.param.acq.dir, '4_grains', ...
sprintf('phase_%02d', phaseID));
gauge = GtGauge([firstID lastID], fprintf('Phase %02d: ', phaseID), ...
gauge = GtGauge([firstID lastID], sprintf('Phase %02d: ', phaseID), ...
'verbose', obj.conf.verbose);
for grainID = firstID : lastID
gauge.incrementAndDisplay();
......
......@@ -138,7 +138,11 @@ end % end of public methods
methods (Access = protected)
function start(obj)
obj.fprintf(obj.title, obj.args_to_title{:});
if ~isempty(obj.args_to_title)
obj.fprintf(obj.title, obj.args_to_title{:});
else
obj.fprintf(obj.title);
end
end
function setStyle(obj, style)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment