Resolves: tdf#153059 after ChangeHeaderOrFooter the control can be disposed
commitd6d08cb2e3ecfb18891089bf37069840c9093835
authorCaolán McNamara <caolanm@redhat.com>
Tue, 17 Jan 2023 10:25:54 +0000 (17 10:25 +0000)
committerAndras Timar <andras.timar@collabora.com>
Mon, 23 Jan 2023 08:41:32 +0000 (23 09:41 +0100)
treef906b22e802ca0d380206a75b05a356ea004df1f
parentcc64211f235d0c5b0085273a9778a69bafb454b2
Resolves: tdf#153059 after ChangeHeaderOrFooter the control can be disposed

If the cursor is still on page one then when a header, via a control on
another page, is added it jumps back to that page, so the widget on the
now hidden page is removed, but the click handler hasn't completed so
the follow up action to change it from a "plus" button to a dropdown
menubutton was on a disposed widget.

Change-Id: I981126412a0ee6a667d77fb97a3db2f2b0a0363c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145584
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
sw/source/uibase/docvw/HeaderFooterWin.cxx