PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2808 *** shadow/2808 Wed Jul 25 15:53:45 2001 --- shadow/2808.tmp.7833 Wed Jul 25 15:53:45 2001 *************** *** 0 **** --- 1,117 ---- + +============================================================================+ + | rotate() performed twice in transform() also having translate() | + +----------------------------------------------------------------------------+ + | Bug #: 2808 Product: Fop | + | Status: NEW Version: all | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Linux | + | Priority: Other Component: svg | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Using fop-0.18.1-DEV on SuSE Linux 6.4 (kernel 2.2.14 SMP) + When the rotate() function appears in a single transform() along with a + translate(), the rotate function is executed twice. First, the figure is + rotated, then after translation, the rotation is performed again. + Attached is an fo file which exhibits the bug reliably on my machine. + In the resulting pdf file, one figure is incorrectly offset from the Y axis + (i.e. rotated -15deg about the origin) because the rotation was applied a + second time to the figure. + + ************************************* i.fo **************************** + + <?xml version="1.0"?> + + <!--***************************************** + **************** i.fo ****************** + *****************************************--> + + <fo:root + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:svg="http://www.w3.org/2000/svg" + > + <fo:layout-master-set> + <fo:simple-page-master master-name="Images" + page-width="610pt" page-height="792pt" + margin-left="70pt" margin-top="54pt" + margin-right="40pt" margin-bottom="38pt" + orphans="3" widows="3" + > + <fo:region-body + margin-left="70pt" margin-top="54pt" + margin-right="40pt" margin-bottom="38pt" + /> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-name="Images"> + <fo:flow flow-name="xsl-region-body"> + + <fo:block + keep-together.within-page="always" + background-color="white" + vertical-align="middle" + text-align="center" + border-style="none" + border-width="1px" + border-color="black" + > + <fo:instream-foreign-object> + <svg:svg width="465pt" height="600pt" viewBox="0 0 465 600"> + <svg:defs> + <svg:g id="siteMaster" width="104pt" height="77pt" viewBox="0 0 104 + 77"> + <svg:rect style="stroke:black; stroke-width:2; fill:white" + x="0" y="0" width="104" height="77"/> + <svg:g transform="translate(5,60)"> + <svg:polygon style="stroke:red; stroke-width:0.5; fill:red" + points=" 10,10 8.5,5 11.5,5 " + <svg:text style="font-size:3pt" x="9.0" + y="13.5">N</svg:text> + </svg:g> + <svg:g style="stroke:gray; stroke-width:0.5; fill:gray"> + <svg:rect x="27" y="26.5" width="15" height="35"/> + <svg:rect x="42" y="36.5" width="30" height="20"/> + <svg:rect x="42" y="33.5" width="10" height="3"/> + <svg:rect x="72" y="40.5" width="13" height="16"/> + <svg:rect x="85" y="40.5" width="14.25" height="23"/> + </svg:g> + <svg:g style="stroke:black; stroke-width:0.5; fill:lightGray"> + <svg:polyline style="stroke:black; stroke-width:0.5; + fill:none; " points=" 43.5,20 44.5,20 + <svg:rect x="95" y="25.5" width="8" height="10"/> + <svg:rect x="88" y="4" width="14" height="12"/> + </svg:g> + </svg:g> + <svg:use id="tf1" xlink:href="#siteMaster" transform="rotate(-15) " + /> + <svg:use id="tf2" xlink:href="#tf1" transform="scale(3) " /> + <svg:use id="tfA" xlink:href="#tf2" transform="translate(0,150)" /> + <svg:use id="tfB" xlink:href="#siteMaster" transform="rotate(-15) + scale(3) translate(0,150)" /> + + <svg:line id="yaxis" x1="0" y1="0" x2="0" y2="600" + style="stroke:black; stroke-width:1" /> + </svg:defs> + + <svg:use xlink:href="#yaxis" /> + <svg:use xlink:href="#yaxis" transform="rotate(-15)" /> + <svg:use xlink:href="#tfA" /> + <svg:use xlink:href="#tfB" /> + + </svg:svg> + </fo:instream-foreign-object> + </fo:block> + + </fo:flow> + </fo:page-sequence> + + </fo:root> + ************************** @EoF *********** + + + ************************* i.fo follows ****************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]