Skip to content

Commit 4d93241

Browse files
committed
(3.50) Revert bad fix in v3.49 for issue #401
1 parent 2e59c7b commit 4d93241

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

export_fig.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@
411411
% 05/11/24: (3.47) Fixed -transparency in case the default bgcolor is already used in the figure (issue #398); enabled specifying non-default transparency color via -transparency parameter; suppress warnings about setting figure position; multiple -xkcd fixes
412412
% 06/03/25: (3.48) Fixed -transparency color artifacts, set default bgcolor tolerance of +-0.1 (issue #400)
413413
% 31/03/25: (3.49) Fixed(?) -transparency in PDF/EPS files (issue #401); override Matlab's default Title & Creator meta-data (issue #402)
414+
% 31/03/25: (3.50) Revert bad fix for issue #401
414415
%}
415416

416417
if nargout
@@ -448,7 +449,7 @@
448449
[fig, options] = parse_args(nargout, fig, argNames, varargin{:});
449450

450451
% Check for newer version and exportgraphics/copygraphics compatibility
451-
currentVersion = 3.49;
452+
currentVersion = 3.50;
452453
if options.version % export_fig's version requested - return it and bail out
453454
imageData = currentVersion;
454455
return
@@ -1050,9 +1051,9 @@
10501051
elseif ~options.png && ~options.tif && ~options.silent % issue #168
10511052
warning('export_fig:transparency', '%s ScreenCapture utility on the Matlab File Exchange: http://bit.ly/1QFrBip', msg);
10521053
end
1053-
elseif options.transparent %issue #401
1054+
%elseif options.transparent %issue #401
10541055
% https://www.mathworks.com/matlabcentral/answers/452533-using-painters-saving-to-eps-does-not-give-transparency
1055-
hasTransparency = true; % bypass the warning message above
1056+
%hasTransparency = true; % bypass the warning message above (BAD FIX!)
10561057
elseif ~isempty(hImages)
10571058
% Fix for issue #230: use OpenGL renderer when exported image contains transparency
10581059
for idx = 1 : numel(hImages)

0 commit comments

Comments
 (0)