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

--- Comment #3 from Trejkaz (pen name) <[email protected]> ---
Files *with* an APM header have similar bizarre behaviour.

I have a unit test for a 950 unit x 575 unit WMF which asserts the width and
height. The test for the version with the APM header still passes, but the
non-APM one started failing after updating to 1.7 from 1.7-beta1. The failure
was the width being scaled up too high somehow.

I tracked the problem down to these lines in WMFRecordStore:

        if (! isotropic) scaleXY = (float)vpW / (float)vpH;
        vpW = (int)(vpW * scaleXY);

No matter how I look at it, this will multiply the width by the width. Removing
these lines fixes the only failing unit test and doesn't cause any other
failures (at least inside our own tests. Batik might have some of its own to
contradict this, but I haven't seen them.)

So I will be commenting these lines out in my copy...

The files I was testing this with were the exact same two files already
attached to this ticket.

-- 
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