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 bu...@apache.org on 2009/07/04 19:17:31 UTC

DO NOT REPLY [Bug 44722] WMFTranscoder/WMFPainter writes out "?" instead of numbers in resulting SVG document when attempting to convert a WMF image without a viewport width specified

https://issues.apache.org/bugzilla/show_bug.cgi?id=44722





--- Comment #1 from Hervé Girod <he...@club-internet.fr>  2009-07-04 10:17:30 PST ---
The problem is in the big readRecords method, with the META_SETWINDOWEXT
switch. A variable _bext is used to be sure that the viewPort is set only the
first time. In this example, the first META_SETWINDOWEXT records all have 0
width and height. The solution is to allow to reset the viewPort after it has
been set before. It is wise to also not allow to set viewPort if width or
height are 0, as this is an error in the WMF File.

I have applied this solution in my working copy of Batik, and it works. I will
propose the (small) patch soon.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org