diff options
author | jp <jp@openoffice.org> | 2000-10-20 12:03:45 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-10-20 12:03:45 +0000 |
commit | db27010cba5eca92bba34ddfd0fc71dc17923379 (patch) | |
tree | 3500a265e16691f8c2bab30b156951cb2787b8fe /sw/source/ui/app/swmodul1.cxx | |
parent | 1edfa7c92c736aa7fb74bf58943b8f300c2ca9ee (diff) |
Bug #79587#: use unknow as redline author if no one name is configurated
Diffstat (limited to 'sw/source/ui/app/swmodul1.cxx')
-rw-r--r-- | sw/source/ui/app/swmodul1.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx index e88492b41cda..9ec4c33c75f5 100644 --- a/sw/source/ui/app/swmodul1.cxx +++ b/sw/source/ui/app/swmodul1.cxx @@ -2,9 +2,9 @@ * * $RCSfile: swmodul1.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jp $ $Date: 2000-10-09 10:49:36 $ + * last change: $Author: jp $ $Date: 2000-10-20 13:03:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -729,11 +729,11 @@ sal_uInt16 SwModule::GetRedlineAuthor() if (!bAuthorInitialised) { SvtUserOptions aOpt; - sActAuthor = aOpt.GetFullName(); + if( !(sActAuthor = aOpt.GetFullName()).Len() ) + sActAuthor = String( SW_RES( STR_REDLINE_UNKNOWN_AUTHOR )); bAuthorInitialised = sal_True; } - - return InsertRedlineAuthor(sActAuthor); + return InsertRedlineAuthor( sActAuthor ); } /*-------------------------------------------------------------------- |