Skip to content

Commit a612bea

Browse files
committed
This reverts commit 78dfb36.
1 parent aa791b8 commit a612bea

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

export_fig.m

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@
413413
% 31/03/25: (3.49) Fixed(?) -transparency in PDF/EPS files (issue #401); override Matlab's default Title & Creator meta-data (issue #402)
414414
% 31/03/25: (3.50) Revert bad fix for issue #401
415415
% 08/07/25: (3.51) Fixed: figure with non-default colormap exported with default colormap in some cases (issue #389)
416-
% 07/09/25: (3.52) Fixed: sgtitle was cropped in transparent PDF/EPS output (thanks @JohanWesto)
417416
%}
418417

419418
if nargout
@@ -451,7 +450,7 @@
451450
[fig, options] = parse_args(nargout, fig, argNames, varargin{:});
452451

453452
% Check for newer version and exportgraphics/copygraphics compatibility
454-
currentVersion = 3.52;
453+
currentVersion = 3.51;
455454
if options.version % export_fig's version requested - return it and bail out
456455
imageData = currentVersion;
457456
return
@@ -1142,10 +1141,6 @@
11421141
try hCBs = getappdata(hAxes,'LayoutPeers'); catch, hCBs=[]; end %issue #383
11431142
hCBs = unique([findall(fig,'tag','Colorbar'), hCBs]);
11441143
hCbTxt = fixBlackText(hCBs,'Title'); % issue #382
1145-
1146-
% Fix subplot grid title (sgtitle) issue #406
1147-
hSpTxt = findobj(fig,'Type','subplottext');
1148-
hSpTxt = fixBlackText(hSpTxt,'');
11491144
end
11501145
% Generate an eps
11511146
print2eps(tmp_nam, fig, options, printArgs{:}); %winopen(tmp_nam)
@@ -1163,7 +1158,6 @@
11631158
set(hZrs, 'Color', [0,0,0]);
11641159
set(hTitle,'Color',[0,0,0]);
11651160
set(hCbTxt,'Color',[0,0,0]);
1166-
set(hSpTxt,'Color',[0,0,0]);
11671161
end
11681162
%}
11691163
% Restore the figure's previous background color (if modified)
@@ -2602,11 +2596,7 @@ function change_rgb_to_cmyk(fname) % convert RGB => CMYK within an EPS file
26022596

26032597
function hText = fixBlackText(hObject, propName)
26042598
try
2605-
if isempty(propName) %issue #406
2606-
hText = hObject;
2607-
else
2608-
hText = get(hObject, propName);
2609-
end
2599+
hText = get(hObject, propName);
26102600
try hText = [hText{:}]; catch, end %issue #383
26112601
for idx = numel(hText) : -1 : 1
26122602
hThisText = hText(idx);

0 commit comments

Comments
 (0)