You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2002/04/10 09:50:39 UTC
cvs commit: xml-batik/sources/org/apache/batik/transcoder/wmf/tosvg WMFPainter.java
vhardy 02/04/10 00:50:39
Modified: sources/org/apache/batik/transcoder/wmf/tosvg
WMFPainter.java
Log:
Applied patch from Luan O'Caroll after suggestion by Robert A. Hare (BSc) [roberth@midcomp.com.au] to fix a problem with placement of text
Revision Changes Path
1.2 +3 -2 xml-batik/sources/org/apache/batik/transcoder/wmf/tosvg/WMFPainter.java
Index: WMFPainter.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/transcoder/wmf/tosvg/WMFPainter.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WMFPainter.java 16 Mar 2001 22:54:59 -0000 1.1
+++ WMFPainter.java 10 Apr 2002 07:50:39 -0000 1.2
@@ -37,7 +37,7 @@
* WMF file in a <tt>Graphics</tt> object.
*
*
- * @version $Id: WMFPainter.java,v 1.1 2001/03/16 22:54:59 vhardy Exp $
+ * @version $Id: WMFPainter.java,v 1.2 2002/04/10 07:50:39 vhardy Exp $
* @author <a href="mailto:luano@asd.ie">Luan O'Carroll</a>
*/
public class WMFPainter {
@@ -447,7 +447,8 @@
Graphics2D g2 = (Graphics2D)g;
int x, y;
x = (int)( scaleX * ( vpX + mr.ElementAt( 0 ).intValue()));
- y = (int)( fontHeight + scaleY * ( vpY + mr.ElementAt( 1 ).intValue()));
+ //y = (int)( fontHeight + scaleY * ( vpY + mr.ElementAt( 1 ).intValue()));
+ y = (int)( scaleY * ( vpY + mr.ElementAt( 1 ).intValue()));
if ( frgdColor != null )
g.setColor( frgdColor );
else
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org