diff --git a/ChangeLog b/ChangeLog index 3351ba736..317ea1c31 100755 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ $Source$ - no other calls to grab_gloabls.lib.php * fixed minimum_common for css files * header.inc.php: missing ; after " + * libraries/function.js::pdfPaperSize() + - javascript warning: function does not always return a vlaue 2005-11-17 Marc Delisle * Documentation.html: patch #1353283, thanks to Isaac Bennetch diff --git a/libraries/functions.js b/libraries/functions.js index 9d5d6582e..a2f107f95 100644 --- a/libraries/functions.js +++ b/libraries/functions.js @@ -1063,8 +1063,8 @@ function dragPlace(no, axis, value) { } /** - * Returns paper sizes for a given format - */ + * Returns paper sizes for a given format + */ function pdfPaperSize(format, axis) { switch (format.toUpperCase()) { case '4A0': @@ -1215,4 +1215,6 @@ function pdfPaperSize(format, axis) { if (axis == 'x') return 612.00; else return 936.00; break; } // end switch + + return 0; } \ No newline at end of file