[rkward-cvs] SF.net SVN: rkward:[2840] trunk/rkward/rkward/plugins/x11device/export.js

kapatp at users.sourceforge.net kapatp at users.sourceforge.net
Fri Apr 23 04:20:38 UTC 2010


Revision: 2840
          http://rkward.svn.sourceforge.net/rkward/?rev=2840&view=rev
Author:   kapatp
Date:     2010-04-23 04:20:38 +0000 (Fri, 23 Apr 2010)

Log Message:
-----------
round is absent in JS, so use Math.round

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/x11device/export.js

Modified: trunk/rkward/rkward/plugins/x11device/export.js
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export.js	2010-04-21 17:28:39 UTC (rev 2839)
+++ trunk/rkward/rkward/plugins/x11device/export.js	2010-04-23 04:20:38 UTC (rev 2840)
@@ -62,8 +62,8 @@
 	if (jpegpng && autoW && autoH) {
 		options += ", width=par(\"din\")[1]*" + resolution;
 	} else if (jpegpng) {
-		if (!autoW) options += ", width=" + round(getValue ("width")*resolution);
-		if (!autoH) options += ", height=" + round(getValue ("height")*resolution);
+		if (!autoW) options += ", width=" + Math.round(getValue ("width")*resolution);
+		if (!autoH) options += ", height=" + Math.round(getValue ("height")*resolution);
 	} else {
 		if (!autoW) options += ", width=" + getValue ("width");
 		if (!autoH) options += ", height=" + getValue ("height");


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list