Created attachment 166211 [details]
File for reproducing the bug
Open attached document. It has a shape in range C3 to D6, which is anchored to cell C3.
Mark rows 3 to 6 and hide them.
Error: Shape is "lost".
It seems, that the shape is not really lost but "only" invisible. If the shape is named, you see it still in the Navigator, but you cannot use the Navigator to access it. And if you mark the rows again and use "Show rows", the shape becomes visible.
Confirmed. And Save&Open doesn't get the shape again.
Version: 18.104.22.168.alpha0+ (x64)
Build ID: a883002d8e2fd77f80c43b7b2e6ac329d83d929d
CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Should be fixed with https://cgit.freedesktop.org/libreoffice/core/commit/?id=1f0b3c7a40edfa81bbc7a58d123a6a2dfd83e4ca
(The patch covers several bug reports, therefore no automatic notification.)