[Libreoffice-bugs] [Bug 134355] When Arrange Fontwork and Shapes, cannot set Fontwork to bring to front

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 16 22:56:34 UTC 2020


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel at t-online.de

--- Comment #13 from Regina Henschel <rb.henschel at t-online.de> ---
I see the same problem too with other shapes. Draw a custon shape in a new
document. Draw a second shape. Move the shapes so that they overlap. Try to
change the stacking order. The first shape will always be on top.

Are you sure it works in any version? I see the error too in AOO.

The problem is, that the first custom shape is put to layer "Controls" and
objects on that special layer are forced to be on top. You can see which layer
is used by expecting the shape in a Basic macro. The layername property is
available in the API.

If you use "to Background" and then "to Foreground" the shape gets the correct
layer. And of cause saving and reloading solves the problem too, because the
file format does not know any "layer" for spreadsheet documents but only
z-order. Layer are internally in Calc. 

Line 106
SdrLayer* pLayer =
pView->GetModel()->GetLayerAdmin().GetLayerPerID(SC_LAYER_CONTROLS);
in FuConstCustomShape::Activate()
looks suspicious to me. Switching layer on Activate() and Deactivate() makes
only sense for form controls.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201216/dbf6593f/attachment.htm>


More information about the Libreoffice-bugs mailing list