Satishpethani92 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

addImage x position is incorrectly calculated because of missing parenthesis #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
When using addImage any non-zero x position value will be incorrectly calculated

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.5 beta on OSX

Please provide any additional information below.
The fix is simple, on line 3657 in PDF.as the correct code should be
xPos = (x+leftMargin)*k;
currently it is 
xPos = x+leftMargin*k;
which will multiply k by leftMargin when it should be multiplying k by the sum 
of x + leftMargin

Original issue reported on code.google.com by arttakes...@gmail.com on 21 Oct 2009 at 1:13

GoogleCodeExporter commented 8 years ago
Confirmed, thanks for the fix

Original comment by speedok@gmail.com on 23 Oct 2009 at 11:36

GoogleCodeExporter commented 8 years ago
Thanks for noticing the bug and fix.

Will include it in the next drop.

Thibault

Original comment by thibault.imbert on 23 Jan 2010 at 10:01