Skip to content

Commit

Permalink
(3.43) Fixed unintended modification of colorbar in bitmap export (is…
Browse files Browse the repository at this point in the history
…sue #385)
  • Loading branch information
altmany committed Dec 7, 2023
1 parent 8d1750d commit 59bc162
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion export_fig.m
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
% 06/07/23: (3.40) For Tiff compression, use AdobeDeflate codec (if available) instead of Deflate (issue #379)
% 29/11/23: (3.41) Fixed error when no filename is specified nor available in the exported figure (issue #381)
% 05/12/23: (3.42) Fixed unintended cropping of colorbar title in PDF export with -transparent (issues #382, #383)
% 07/12/23: (3.43) Fixed unintended modification of colorbar in bitmap export (issue #385)
%}

if nargout
Expand Down Expand Up @@ -426,7 +427,7 @@
[fig, options] = parse_args(nargout, fig, argNames, varargin{:});

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

0 comments on commit 59bc162

Please sign in to comment.