diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-11-08 08:09:58 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-11-08 08:09:58 +0000 |
commit | a0074dcc0d7c27c52d5ea037fc3ddc3239ceef6b (patch) | |
tree | a8c72aca6116e12376796374a374ad1cb5e9f7a0 /svx/source/editeng/forbiddencharacterstable.cxx | |
parent | INTEGRATION: CWS impress73 (1.94.84); FILE MERGED (diff) | |
download | core-a0074dcc0d7c27c52d5ea037fc3ddc3239ceef6b.tar.gz core-a0074dcc0d7c27c52d5ea037fc3ddc3239ceef6b.zip |
INTEGRATION: CWS impress73 (1.2.90); FILE MERGED
2005/10/21 15:47:32 cl 1.2.90.1: #i54233# applied patch from issue
Diffstat (limited to 'svx/source/editeng/forbiddencharacterstable.cxx')
-rw-r--r-- | svx/source/editeng/forbiddencharacterstable.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svx/source/editeng/forbiddencharacterstable.cxx b/svx/source/editeng/forbiddencharacterstable.cxx index f84c810804cb..009a5064942d 100644 --- a/svx/source/editeng/forbiddencharacterstable.cxx +++ b/svx/source/editeng/forbiddencharacterstable.cxx @@ -4,9 +4,9 @@ * * $RCSfile: forbiddencharacterstable.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2005-09-08 22:32:46 $ + * last change: $Author: rt $ $Date: 2005-11-08 09:09:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -62,8 +62,11 @@ const com::sun::star::i18n::ForbiddenCharacters* SvxForbiddenCharactersTable::Ge ForbiddenCharactersInfo* pInf = Get( nLanguage ); if ( !pInf && bGetDefault && mxMSF.is() ) { - pInf = new ForbiddenCharactersInfo; - ((SvxForbiddenCharactersTableImpl*)this)->Insert( nLanguage, pInf ); + const SvxForbiddenCharactersTableImpl *pConstImpl = dynamic_cast<const SvxForbiddenCharactersTableImpl*>(this); + SvxForbiddenCharactersTableImpl* pImpl = const_cast<SvxForbiddenCharactersTableImpl*>(pConstImpl); + pInf = new ForbiddenCharactersInfo; + pImpl->Insert( nLanguage, pInf ); + pInf->bTemporary = TRUE; LocaleDataWrapper aWrapper( mxMSF, SvxCreateLocale( nLanguage ) ); pInf->aForbiddenChars = aWrapper.getForbiddenCharacters(); |