diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index ec9cda9822a9..7a93679a28e3 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -1290,9 +1290,11 @@ void SfxWorkWindow::UpdateObjectBars_Impl() void SfxWorkWindow::UpdateChildWindows_Impl() { - // any current or in the context available Childwindows + // tdf#100870, tdf#101320: don't use range-based for loop when + // container is modified for ( size_t n=0; npWin; bool bCreate = false;