Renumber to exclude paras in hidden section?

Hello,
I have a LO Writer template containing numbered paragraphs and sections that are programmatically hidden. These sections contain numbered paragraphs.

The problem is that when a section is hidden the paragraph numbering does not change to exclude the hidden paragraphs. The visible paragraph numbers are not consecutive.

Is there any way to exclude hidden paragraphs/sections from document paragraph numbering.

Thanks for your help.
Don

LO Writer versions 4.3.5 & 4.3.4; Windows 7.

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