Skip to content

Commit

Permalink
Bugfix: Mismatch Matlab/Java in number of screens (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed May 19, 2021
1 parent 1a6df44 commit 1d49449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/gui/gui_layout.m
Expand Up @@ -182,7 +182,7 @@ function Update() %#ok<DEFNU>
MonitorPositions = get(0, 'MonitorPositions');
isOldPositions = (bst_get('MatlabVersion') < 804);
% Fix discrepancies (reported in: https://neuroimage.usc.edu/forums/t/using-brainstorm-on-two-screens-under-linux/28418)
if length(jScreens) < size(MonitorPositions,1)
if length(jScreens) > size(MonitorPositions,1)
jScreens = jScreens(1:size(MonitorPositions,1));
end
% Find default screen
Expand Down

0 comments on commit 1d49449

Please sign in to comment.