diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-08-14 18:39:26 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-08-14 18:39:26 +0000 |
commit | e3f02751b0a81b76dff0a176babf2a195049645e (patch) | |
tree | a6a38c900289261afe596268d043fbc0d75db5e2 /xmloff | |
parent | INTEGRATION: CWS impress151 (1.14.186); FILE MERGED (diff) | |
download | core-e3f02751b0a81b76dff0a176babf2a195049645e.tar.gz core-e3f02751b0a81b76dff0a176babf2a195049645e.zip |
INTEGRATION: CWS tl58 (1.2.52); FILE MERGED
2008/08/06 10:17:43 od 1.2.52.1: #i92478# method <XMLTextListsHelper::GenerateNewListId()>
- created list id now starts with "list" to conform to ID type
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtlists.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx index 24b76507d029..722eff69687f 100644 --- a/xmloff/source/text/txtlists.cxx +++ b/xmloff/source/text/txtlists.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: txtlists.cxx,v $ - * $Revision: 1.2 $ + * $Revision: 1.3 $ * * This file is part of OpenOffice.org. * @@ -140,10 +140,15 @@ const ::rtl::OUString& XMLTextListsHelper::GetListStyleOfLastProcessedList() con ::rtl::OUString XMLTextListsHelper::GenerateNewListId() const { + // --> OD 2008-08-06 #i92478# + ::rtl::OUString sTmpStr( ::rtl::OUString::createFromAscii( "list" ) ); + // <-- sal_Int64 n = Time().GetTime(); n += Date().GetDate(); n += rand(); - ::rtl::OUString sTmpStr( ::rtl::OUString::valueOf( n ) ); + // --> OD 2008-08-06 #i92478# + sTmpStr += ::rtl::OUString::valueOf( n ); + // <-- long nHitCount = 0; ::rtl::OUString sNewListId( sTmpStr ); |