Mercurial > octave
comparison scripts/plot/util/print.m @ 19725: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 | abc158e7122e |
children | 9fc020886ae9 |
comparison
equal
deleted
inserted
replaced
19724:abc158e7122e | 19725:5f2c0ca0ef51 |
---|---|
540 error ("print:invalidpreview", | 540 error ("print:invalidpreview", |
541 "print.m: epstool cannot include preview for format '%s'", | 541 "print.m: epstool cannot include preview for format '%s'", |
542 opts.preview); | 542 opts.preview); |
543 endswitch | 543 endswitch |
544 if (! isempty (opts.ghostscript.resolution)) | 544 if (! isempty (opts.ghostscript.resolution)) |
545 cmd = sprintf ("%s --dpi %d", cmd, opts.ghostscript.resolution); | 545 cmd = sprintf ("%s --dpi %d", cmd, fix (opts.ghostscript.resolution)); |
546 endif | 546 endif |
547 else | 547 else |
548 cmd = ""; | 548 cmd = ""; |
549 endif | 549 endif |
550 if (! isempty (cmd)) | 550 if (! isempty (cmd)) |
659 otherwise | 659 otherwise |
660 packages = "\\usepackage{epsfig,color}"; | 660 packages = "\\usepackage{epsfig,color}"; |
661 graphicsfile = strcat (opts.name, "-inc.eps"); | 661 graphicsfile = strcat (opts.name, "-inc.eps"); |
662 endswitch | 662 endswitch |
663 papersize = sprintf ("\\usepackage[papersize={%.2fbp,%.2fbp},text={%.2fbp,%.2fbp}]{geometry}", | 663 papersize = sprintf ("\\usepackage[papersize={%.2fbp,%.2fbp},text={%.2fbp,%.2fbp}]{geometry}", |
664 opts.canvas_size, opts.canvas_size); | 664 fix (opts.canvas_size), fix (opts.canvas_size)); |
665 prepend = {"\\documentclass{minimal}"; | 665 prepend = {"\\documentclass{minimal}"; |
666 packages; | 666 packages; |
667 papersize; | 667 papersize; |
668 "\\begin{document}"; | 668 "\\begin{document}"; |
669 "\\centering"}; | 669 "\\centering"}; |