diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-05-29 11:27:19 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-05-29 11:27:19 +0000 |
commit | ec6db44fc8f4226ed7a0c1ad6917a89d4e8cf24f (patch) | |
tree | 41d134d0a86968182af960ba065c25208a18e88b /sw/source | |
parent | 0c4df1553a57da29ee3e1c8dedc0564dc324236a (diff) |
#87316# protected property on indices now works
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 08d65e2a08b4..f9d71e065aa2 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoidx.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: os $ $Date: 2001-05-16 07:52:43 $ + * last change: $Author: dvo $ $Date: 2001-05-29 12:27:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -486,7 +486,12 @@ void SwXDocumentIndex::setPropertyValue(const OUString& rPropertyName, pTOXBase->SetFromObjectNames(! lcl_AnyToBool(aValue)); break; case WID_PROTECTED : - pTOXBase->SetProtected(lcl_AnyToBool(aValue)); + { + sal_Bool bSet = lcl_AnyToBool(aValue); + pTOXBase->SetProtected(bSet); + if(GetFmt()) + ((SwTOXBaseSection*)pTOXBase)->SetProtect(bSet); + } break; case WID_USE_ALPHABETICAL_SEPARATORS: nTOIOptions = lcl_AnyToBool(aValue) ? |