Skip to content

Commit 59bc162

Browse files
committed
(3.43) Fixed unintended modification of colorbar in bitmap export (issue #385)
1 parent 8d1750d commit 59bc162

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

export_fig.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@
389389
% 06/07/23: (3.40) For Tiff compression, use AdobeDeflate codec (if available) instead of Deflate (issue #379)
390390
% 29/11/23: (3.41) Fixed error when no filename is specified nor available in the exported figure (issue #381)
391391
% 05/12/23: (3.42) Fixed unintended cropping of colorbar title in PDF export with -transparent (issues #382, #383)
392+
% 07/12/23: (3.43) Fixed unintended modification of colorbar in bitmap export (issue #385)
392393
%}
393394

394395
if nargout
@@ -426,7 +427,7 @@
426427
[fig, options] = parse_args(nargout, fig, argNames, varargin{:});
427428

428429
% Check for newer version and exportgraphics/copygraphics compatibility
429-
currentVersion = 3.42;
430+
currentVersion = 3.43;
430431
if options.version % export_fig's version requested - return it and bail out
431432
imageData = currentVersion;
432433
return
@@ -2382,6 +2383,7 @@ function set_manual_axes_modes(Hlims, ax)
23822383
% Fix for issue #205 - only set manual ticks when the Ticks number match the TickLabels number
23832384
if numel(tickVals) == numel(tickStrs)
23842385
set(hAxes, props{:}); % no exponent and matching ticks, so update both ticks and tick labels to manual
2386+
drawnow % issue #385
23852387
end
23862388
end
23872389
catch % probably HG1

0 commit comments

Comments
 (0)