lok: vcl: fix multiple floatwin removal case more robustly.
commit23847e9f0e8568f2dbb70896b7504262704309d6
authorMichael Meeks <michael.meeks@collabora.com>
Tue, 17 Dec 2019 17:40:51 +0000 (17 17:40 +0000)
committerAndras Timar <andras.timar@collabora.com>
Wed, 18 Dec 2019 10:13:20 +0000 (18 11:13 +0100)
tree9c736bdea1b1c28e8d15e801f2b1a919ec47e7f7
parent070c587adeb0953a52c1508c87ef6a803b58c8c5
lok: vcl: fix multiple floatwin removal case more robustly.

Instead of this over-clever approach of recursively removing items
which can easily fail, build a list, then iterate it in-line while
disabling recursion.

Change-Id: I846a0d44401500d60dcc2a7f16f222324c6c621b
Reviewed-on: https://gerrit.libreoffice.org/85335
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
include/vcl/floatwin.hxx
vcl/source/window/floatwin.cxx