Skip to content

Commit d8131e4

Browse files
committed
Fixed issue altmany#156 (bad return value in R2016b)
1 parent 2bad961 commit d8131e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

using_hg2.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
% (true) or not (false).
1111

1212
% 19/06/2015 - Suppress warning in R2015b; cache result for improved performance
13+
% 06/06/2016 - Fixed issue #156 (bad return value in R2016b)
1314

1415
function tf = using_hg2(fig)
1516
persistent tf_cached
@@ -21,7 +22,7 @@
2122
% This generates a [supressed] warning in R2015b:
2223
tf = ~graphicsversion(fig, 'handlegraphics');
2324
catch
24-
tf = verLessThan('matlab','8.4'); % =R2014b
25+
tf = ~verLessThan('matlab','8.4'); % =R2014b
2526
end
2627
warning(oldWarn);
2728
catch

0 commit comments

Comments
 (0)