You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ph...@apache.org on 2005/08/28 19:21:42 UTC

svn commit: r263896 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java

Author: pherweg
Date: Sun Aug 28 10:21:38 2005
New Revision: 263896

URL: http://svn.apache.org/viewcvs?rev=263896&view=rev
Log:
RTF: borders had been too thick: divide by 50 to convert from millipoint to twips

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java?rev=263896&r1=263895&r2=263896&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java Sun Aug 28 10:21:38 2005
@@ -51,7 +51,8 @@
             FOPRtfAttributes attrs = new FOPRtfAttributes();
             attrs.set(IBorderAttributes.BORDER_COLOR, border.getBorderColor(side));
             attrs.set(convertAttributetoRtf(styleEnum));
-            attrs.set(IBorderAttributes.BORDER_WIDTH, border.getBorderWidth(side, false));
+            //division by 50 to convert millipoints to twips
+            attrs.set(IBorderAttributes.BORDER_WIDTH, border.getBorderWidth(side, false)/50);
             attributes.set(controlWord, attrs);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org