Skip to content

Commit b47c6a0

Browse files
committed
plotlyupdate dircount fix
1 parent ff2e6a1 commit b47c6a0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plotly/plotly_setup_aux/plotlycleanup.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d}),plotlyToolboxDir);
3838
if ~isempty(plotlyLoc)
3939
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api-master','plotly');
40+
dircount = dircount + 1;
4041
elseif ~isempty(plotlyToolboxLoc)
4142
plotlyDirs{dircount} = plotlyToolboxDir;
43+
dircount = dircount + 1;
4244
end
43-
dircount = dircount + 1;
4445
end
4546

4647
for d = 1:length(plotlyDirs)

plotly/plotly_setup_aux/plotlyupdate.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ function plotlyupdate(varargin)
7979
plotlyToolboxLoc = strfind(fileparts(plotlyScriptDirs{d}),plotlyToolboxDir);
8080
if ~isempty(plotlyLoc)
8181
plotlyDirs{dircount} = fullfile(plotlyScriptDirs{d}(1:plotlyLoc-1),'MATLAB-api-master','plotly');
82+
dircount = dircount + 1;
8283
elseif ~isempty(plotlyToolboxLoc)
8384
plotlyDirs{dircount} = plotlyToolboxDir;
85+
dircount = dircount + 1;
8486
end
85-
dircount = dircount + 1;
8687
end
8788

8889
if isempty(plotlyDirs)

0 commit comments

Comments
 (0)