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

           Summary: WMFTranscoder/WMFPainter writes out "?" instead of
                    numbers in resulting SVG document when attempting to
                    convert a WMF image without a viewport width specified
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Utilities
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21747)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21747)
This attachment contains a WMF witha viewport width of 0 and the resulting svg
images after it has been processed by a modified & unmodifed WMFTranscoder

Line 118 on WMFPainter.java resets the scale based on a calculation of scale *
the width in pixels / the viewport width.  In the event that the viewport width
is zero, division by zero occurs and a the scale is set as "Infinity."  This
causes lots of issues downstream and eventually the SVG file is written out
with "?" in place of numbers in the <path> tags, and the SVG renders completely
blank.  If this line is commented out, then the SVG resembles the original WMF,
except that only about half of the original content is rendered in the view
port.  See the attachment for the original WMF image and the resulting two SVG
files.


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to