From 5bf790075a45c44a2fde3aba34f896aedbf043fa Mon Sep 17 00:00:00 2001 From: Dirk Völzke Date: Wed, 14 Feb 2001 10:20:49 +0000 Subject: The first region should be located in the user directory, so read the directories in reverse order ( the user dir is the last one --- sfx2/source/doc/doctempl.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sfx2/source/doc/doctempl.cxx') 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