Mercurial > hg > octave-nkf
diff scripts/plot/util/private/__gnuplot_print__.m @ 19930:5f2c0ca0ef51
Ensure that numbers passed to integer *printf format codes are integers (bug #44245).
* num2str.m, validateattributes.m, inputname.m, stemleaf.m, print.m,
__ghostscript__.m, __gnuplot_print__.m, __go_draw_axes__.m,
__go_draw_figure__.m, bicg.m, qmr.m, mat2str.m, validatestring.m, assert.m:
Ensure that numbers passed to integer *printf format codes are integers.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 16 Feb 2015 16:51:45 -0800 |
parents | 4197fc428c7d |
children | ab2c5e84954a |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_print__.m +++ b/scripts/plot/util/private/__gnuplot_print__.m @@ -220,6 +220,8 @@ f = sprintf ("%d", 2 * opts.fontsize); endif case "svg" + ## FIXME: Why does svg format use round on the fontsize while + ## other terminals don't? if (! isempty (opts.font) && ! isempty (opts.fontsize)) fontsize = round (opts.fontsize * 0.75); f = sprintf ('fname "%s" fsize %d', opts.font, fontsize);