Comment 5 for bug 1241783

Revision history for this message
David Mathog (mathog) wrote :

Attached patch addresses drawing scaling issue mentioned in the preceding post. It must be applied in addition to the other patch, earlier in this bug report.

The problem was that in WMF files that did not have a ViewPort record, and used different sizes in WindowExt and the header, the graphics were not scaled to the full drawing size. The test file I generally use did not trigger this bug because the sizes in WindowExt and the header were the same. The test file picsize.wmf, made by PowerPoint, did trigger it.

Before this patch is applied when the picsize.wmf test file (above) is opened it will be too small by a factor of about 6.4, and will be located in the upper left corner of the drawing.

After this patch is applied when the picsize.wmf test file is opened it will fill the entire drawing surface.