diff options
author | Dirk Völzke <dv@openoffice.org> | 2001-02-14 10:20:49 +0000 |
---|---|---|
committer | Dirk Völzke <dv@openoffice.org> | 2001-02-14 10:20:49 +0000 |
commit | 5bf790075a45c44a2fde3aba34f896aedbf043fa (patch) | |
tree | 5c34dc6de2b00791b7115d8bba703fa96354c0f8 /sfx2/source/doc/doctempl.cxx | |
parent | 0ec1047141baa8d0cd964c8c9dfbc6f75d61c138 (diff) |
The first region should be located in the user directory, so read the directories in reverse order ( the user dir is the last one
Diffstat (limited to 'sfx2/source/doc/doctempl.cxx')
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index fed73c4d6f2e..ad9905cab482 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: doctempl.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: dv $ $Date: 2000-12-21 18:00:29 $ + * last change: $Author: dv $ $Date: 2001-02-14 11:20:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3555,20 +3555,21 @@ sal_Bool SfxDocTemplate_Impl::DoUpdate() if ( ! GetTemplateRoot( aTemplRoot, bNewRoot ) ) return sal_False; - ULONG i; - ULONG nCount = maDirs.GetTokenCount( C_DELIM ); + ULONG i = maDirs.GetTokenCount( C_DELIM ); - for ( i=0; i<nCount; i++ ) + while( i ) { Content aTemplDir; + i -= 1; + if ( GetTemplateDir( (USHORT) i, aTemplDir ) ) GetFolders( aTemplRoot, aTemplDir ); } // Now remove all non existing objects - nCount = GetRegionCount(); + ULONG nCount = GetRegionCount(); while ( nCount ) { |