From: <bob...@us...> - 2013-01-22 19:34:25
|
Revision: 9710 http://docbook.svn.sourceforge.net/docbook/?rev=9710&view=rev Author: bobstayton Date: 2013-01-22 19:34:18 +0000 (Tue, 22 Jan 2013) Log Message: ----------- Add round() function when pixel counts are used for image width and height. Modified Paths: -------------- trunk/xsl/html/graphics.xsl Modified: trunk/xsl/html/graphics.xsl =================================================================== --- trunk/xsl/html/graphics.xsl 2013-01-22 18:56:09 UTC (rev 9709) +++ trunk/xsl/html/graphics.xsl 2013-01-22 19:34:18 UTC (rev 9710) @@ -395,7 +395,7 @@ <xsl:with-param name="em.size" select="$points.per.em"/> </xsl:call-template> </xsl:variable> - <xsl:value-of select="$cwidth.in.points div 72.0 * $pixels.per.inch * $scale"/> + <xsl:value-of select="round($cwidth.in.points div 72.0 * $pixels.per.inch * $scale)"/> </xsl:if> </xsl:variable> @@ -462,7 +462,7 @@ <xsl:with-param name="em.size" select="$points.per.em"/> </xsl:call-template> </xsl:variable> - <xsl:value-of select="$cdepth.in.points div 72.0 * $pixels.per.inch * $scale"/> + <xsl:value-of select="round($cdepth.in.points div 72.0 * $pixels.per.inch * $scale)"/> </xsl:if> </xsl:variable> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |