You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by shzh zhao <ao...@gmail.com> on 2012/10/09 08:36:46 UTC
why AOO adjusts the value when calculating the position of an image?
hi,
in oox/source/xls/drawingbase.cxx
EmuRectangle ShapeAnchor::calcAnchorRectEmu( const Size& rGageSizeHmm) const
{
......
// add 0.75 mm (27,000 EMUs) in X direction to correct display error
if( aAnchorRect.X >= 0 )
aAnchorRect.X += 27000;
// remove 0.25 mm (9,000 EMUs) in Y direction to correct display error
if( aAnchorRect.Y >= 9000 )
aAnchorRect.Y -= 9000;
}
why AOO adjusts the value when calculating the position of an image?
and this adjust will introduce an issue if the X position of an image is 0,
for example(refer to the attachment),import this document in AOO,the image
is moved a little to the right side.
--
*
mailto: *aoo.zhaoshzh@gmail.com <https://google.com/profiles>
<https://google.com/profiles>