Skip to content

Commit cca6c01

Browse files
author
Harsh Purwar
committed
Revert unintentional changes
1 parent fcb3c66 commit cca6c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/plotlyfig_aux/handlegraphics/updateArea.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ function updateArea(obj,areaIndex)
113113
%-------------------------------------------------------------------------%
114114

115115
%-area name-%
116-
if isfield(area_data,'DisplayName')
116+
if ~isempty(area_data.DisplayName);
117117
obj.data{areaIndex}.name = area_data.DisplayName;
118118
else
119-
obj.data{areaIndex}.name = '';
119+
obj.data{areaIndex}.name = area_data.DisplayName;
120120
end
121121

122122
%-------------------------------------------------------------------------%

0 commit comments

Comments
 (0)