Apache OpenOffice (AOO) Bugzilla – Issue 108450
For lines return a matrix with rotation in the API
Last modified: 2010-02-02 19:16:57 UTC
AW: SdrPathObj::TRGetBaseGeometry returns a correct combination for lines, wiich is the rotated line geometry and the matrix containing translate and scale. It would be better to have the rotaiton in the matrix, not in the line polygon. Thus, better return a unit line along the X-Axis and the rotation as part of the matrix.
AW: Changed type
add me to CC
AW: Started, changed SdrPathObj::TRGetBaseGeometry (and SdrMeasureObj::TRGetBaseGeometry, too). It can be done quite simple in TRGetBaseGeometry, but it has immediate consequences for XMLOFF shape exprt/import. Lines are no longer correctly loaded/saved when doing this. It is possible to adapt the needed places in XMLOFF, but in principle doing this consequently would lead to writing lines not as start and end point (as now), but as horizontal lines starting from (0,0) to (length, 0) and with rotation and translation in a matrix statement, analog to rotated other objects. This makes it bad human readable, unsafe for older imports of OOo and other usages of ODF from other users. With this knowledge and the fact that this is not an error but just an enhancement, i opt to not do it. Everyone getting the geometry and matrix using TRGetBaseGeometry can extract the rotation and add to the matrix if he wants.
AW: Setting to wontfix (for enhancement, there should be a WONTCHANGE).
wontfix -> closed