https://bugs.documentfoundation.org/show_bug.cgi?id=126319

Armin Le Grand <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |
             Status|NEW                         |ASSIGNED

--- Comment #12 from Armin Le Grand <[email protected]> ---
Taking a look. Comment 8 shows the basic dilemma. It gets triggered at
GraphicExporter::GetGraphic in svx/source/unodraw/UnoGraphicExporter.cxx which
calls GetBitmapFromMetaFile.
That gets the correct sizes at the metafile in rMtf.GetPrefSize() and
rMtf.GetPrefMapMode(). Problem is that this then gets corrected using

        tools::Rectangle aHairlineRect;
        const tools::Rectangle
aRect(rMtf.GetBoundRect(*Application::GetDefaultDevice(), &aHairlineRect));

which then falls back to the 'real' graphical bounds cutting off the (unused,
empty) borders from the TextObject (as in comment 8).

This happens due to 046df0a876b3d948bb1e14443c00c180bc8cccaa:
tdf#105998: Enhanced fix for MetafileToBitmap at better place

as detected by comment 7. Checking that one shows that this was/is needed to
get the hairline bottom/right problem solved. This means that it is intended to
expand the BoundRect, not shrink it. This is a good possible fact for a fix.
Checking this...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to