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 ...@@ -93,7 +93,7 @@ classdef GtThreshold < handle
phaseDir = fullfile(obj.param.acq.dir, '4_grains', ... phaseDir = fullfile(obj.param.acq.dir, '4_grains', ...
sprintf('phase_%02d', phaseID)); sprintf('phase_%02d', phaseID));
gauge = GtGauge([firstID lastID], fprintf('Phase %02d: ', phaseID), ... gauge = GtGauge([firstID lastID], sprintf('Phase %02d: ', phaseID), ...
'verbose', obj.conf.verbose); 'verbose', obj.conf.verbose);
for grainID = firstID : lastID for grainID = firstID : lastID
gauge.incrementAndDisplay(); gauge.incrementAndDisplay();
......
...@@ -138,7 +138,11 @@ end % end of public methods ...@@ -138,7 +138,11 @@ end % end of public methods
methods (Access = protected) methods (Access = protected)
function start(obj) 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 end
function setStyle(obj, style) 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