Skip to content

Commit

Permalink
Fix bug when trying to manually flag velocity data from single point …
Browse files Browse the repository at this point in the history
…current metres.
  • Loading branch information
ggalibert committed Jul 13, 2017
1 parent 0db75fe commit 330d7ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Graph/TimeSeries/highlightTimeSeriesTimeDepth.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
if ~ishandle(data), error('data must be a graphics handle'); end
if ~isstruct(variable), error('variable must be a struct'); end
if ~ischar(type), error('type must be a string'); end

if any(size(variable.data) == 1)
% we actually deal with a single point in depth instrument (ex.:
% current metre)
highlight = highlightTimeSeriesGeneric(region, data, variable, type);
return;
end

xdata = get(data, 'XData');
ydata = get(data, 'YData');
Expand Down

0 comments on commit 330d7ea

Please sign in to comment.