summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/DocumentListsManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/DocumentListsManager.cxx')
-rw-r--r--sw/source/core/doc/DocumentListsManager.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/doc/DocumentListsManager.cxx b/sw/source/core/doc/DocumentListsManager.cxx
index dfd9a260f2e1..5285c8768691 100644
--- a/sw/source/core/doc/DocumentListsManager.cxx
+++ b/sw/source/core/doc/DocumentListsManager.cxx
@@ -182,6 +182,13 @@ void DocumentListsManager::trackChangeOfListStyleName( const OUString& sListStyl
maListStyleLists.erase( sListStyleName );
maListStyleLists[sNewListStyleName] = pList;
}
+ for (auto & it : maLists) // tdf#91131 update these references too
+ {
+ if (it.second->GetDefaultListStyleName() == sListStyleName)
+ {
+ it.second->SetDefaultListStyleName(sNewListStyleName);
+ }
+ }
}