]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed scalefit to work when contentdepth="100%".
authorBob Stayton <bobs@sagehill.net>
Thu, 5 May 2005 07:08:06 +0000 (07:08 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 5 May 2005 07:08:06 +0000 (07:08 +0000)
xsl/fo/graphics.xsl

index 979156da5e6931b4d39f36e2016d839e0d209815..25509ecd0075d8884bed06175ebaf8325d8de1cb 100644 (file)
   <xsl:variable name="scalefit">
     <xsl:choose>
       <xsl:when test="$ignore.image.scaling != 0">0</xsl:when>
-      <xsl:when test="@contentwidth or @contentdepth">0</xsl:when>
+      <xsl:when test="@contentwidth">0</xsl:when>
+      <xsl:when test="@contentdepth and 
+                      @contentdepth != '100%'">0</xsl:when>
       <xsl:when test="@scale">0</xsl:when>
       <xsl:when test="@scalefit"><xsl:value-of select="@scalefit"/></xsl:when>
       <xsl:when test="@width or @depth">1</xsl:when>