incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shzh zhao <aoo.zhaos...@gmail.com>
Subject why AOO adjusts the value when calculating the position of an image?
Date Tue, 09 Oct 2012 06:36:46 GMT
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>

Mime
View raw message