diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 11:09:26 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-10-19 11:09:26 +0000 |
commit | 1524af4f823f565d06b9b78457e4d582c5752a6d (patch) | |
tree | c3ccd997db4e1a21400232df377bd939197e1378 /svx/source/gallery2/gallery1.cxx | |
parent | 68f0263f6afc85e17bb3658c65b8607fab705791 (diff) |
INTEGRATION: CWS cov2src (1.19.84); FILE MERGED
2005/10/18 14:14:17 rt 1.19.84.1: #126234# Join MWS COV680 m4 into SRC680
Diffstat (limited to 'svx/source/gallery2/gallery1.cxx')
-rw-r--r-- | svx/source/gallery2/gallery1.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 5a1d33bd659b..c918846b23b9 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -4,9 +4,9 @@ * * $RCSfile: gallery1.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: rt $ $Date: 2005-09-08 23:07:22 $ + * last change: $Author: rt $ $Date: 2005-10-19 12:09:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -689,14 +689,15 @@ BOOL Gallery::HasTheme( const String& rThemeName ) // ------------------------------------------------------------------------ -BOOL Gallery::CreateTheme( const String& rThemeName ) +BOOL Gallery::CreateTheme( const String& rThemeName, UINT32 nNumFrom ) { BOOL bRet = FALSE; if( !HasTheme( rThemeName ) && ( GetUserURL().GetProtocol() != INET_PROT_NOT_VALID ) ) { + nLastFileNumber=nNumFrom > nLastFileNumber ? nNumFrom : ++nLastFileNumber; GalleryThemeEntry* pNewEntry = new GalleryThemeEntry( GetUserURL(), rThemeName, - ++nLastFileNumber, + nLastFileNumber, FALSE, FALSE, TRUE, 0, FALSE ); aThemeList.Insert( pNewEntry, LIST_APPEND ); |