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

Regina Henschel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Regina Henschel <[email protected]> ---
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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to