Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.7
-
None
-
None
-
Operating System: Windows XP
Platform: PC
Description
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.