DO NOT REPLY [Bug 37815] Graphic scaling scale-to-fit Not working as expected
https://issues.apache.org/bugzilla/show_bug.cgi?id=37815 Glenn Adams gl...@skynav.com changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #7 from Glenn Adams gl...@skynav.com 2012-04-01 07:05:25 UTC --- batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug.
DO NOT REPLY [Bug 37815] - Graphic scaling scale-to-fit Not working as expected
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37815. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37815 --- Additional Comments From [EMAIL PROTECTED] 2005-12-07 05:00 --- Created an attachment (id=17164) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17164action=view) Pdf showing the output -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 37815] - Graphic scaling scale-to-fit Not working as expected
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37815. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37815 --- Additional Comments From [EMAIL PROTECTED] 2005-12-07 05:05 --- The fopbugeg.zip attached file contains an example that shows how it fails this example is an edited version of the images.fo example in the source tree. It is archived so that the images are in the same relative path as they were originaly. The before.pdf attached file shows the output as is generated with the current version. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 37815] - Graphic scaling scale-to-fit Not working as expected
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37815. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37815 --- Additional Comments From [EMAIL PROTECTED] 2005-12-07 05:15 --- Created an attachment (id=17166) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17166action=view) [PATCH] fixes the problem The issue seems to be caused by a lack of a cast before an integer divide is assigned to a double eg. double rat1 = cwidth / fobj.getIntrinsicWidth(); where both cwidth and the returned value are integers. Adding a double cast to the cwidth seems to fix the problem eg. double rat1 = (double) cwidth / fobj.getIntrinsicWidth(); The submited patch fixes this problem I am no JAVA expert so I don't know if this is specific to the implementation of JAVA I am running which is 1.5.0_05-b05 after.pdf shows the output after the patch is applied which is as I expect it to be Hope this helps and thanks to the development for all their good work -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee.