diff options
author | Thomas Lange <tl@openoffice.org> | 2001-05-17 12:43:01 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-05-17 12:43:01 +0000 |
commit | 81c92a81a26bc0fb985c398edfaeb22cda4bea57 (patch) | |
tree | 434eff5afad21335cfadc42cc9a9bc013f9aae1b /starmath/source/symbol.cxx | |
parent | ed40993bc2fae72222af5c406dfdc209267b8868 (diff) |
#86889# loading of symbols improved
Diffstat (limited to 'starmath/source/symbol.cxx')
-rw-r--r-- | starmath/source/symbol.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx index dbd587e0681a..a04385d7840d 100644 --- a/starmath/source/symbol.cxx +++ b/starmath/source/symbol.cxx @@ -2,9 +2,9 @@ * * $RCSfile: symbol.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: mtg $ $Date: 2001-05-16 12:01:50 $ + * last change: $Author: tl $ $Date: 2001-05-17 13:43:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -715,15 +715,18 @@ void SmSymSetManager::Load() const SmSym *pSym = rCfg.GetSymbol(i); if (pSym) { + SmSymSet *pSymSet = 0; const String &rSetName = pSym->GetSetName(); - if (SYMBOLSET_NONE == GetSymbolSetPos( rSetName )) - AddSymbolSet( new SmSymSet( rSetName ) ); USHORT nSetPos = GetSymbolSetPos( rSetName ); - SmSymSet *pSymSet = GetSymbolSet( nSetPos ); - if (pSymSet) + if (SYMBOLSET_NONE != nSetPos) + pSymSet = GetSymbolSet( nSetPos ); + else { - pSymSet->AddSymbol( new SmSym( *pSym ) ); + pSymSet = new SmSymSet( rSetName ); + AddSymbolSet( pSymSet ); } + + pSymSet->AddSymbol( new SmSym( *pSym ) ); } } // build HashTables |