]> granicus.if.org Git - docbook-dsssl/commitdiff
Set scalefit=1 if a default image width is defined. Closes bug #2020774.
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 25 Oct 2008 09:41:24 +0000 (09:41 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 25 Oct 2008 09:41:24 +0000 (09:41 +0000)
xsl/fo/graphics.xsl

index 6f6a404eb1290c5bc11e6d855f4ed1848653b8f4..14f211fcbaf3169302123b9827558d1dc5b28e0c 100644 (file)
       <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>
+      <xsl:when test="$default.image.width != ''">1</xsl:when>
       <xsl:otherwise>0</xsl:otherwise>
     </xsl:choose>
   </xsl:variable>