diff options
author | Sascha Ballach <sab@openoffice.org> | 2002-11-26 14:05:18 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2002-11-26 14:05:18 +0000 |
commit | 744a68860a9a9bf45df6885db3f0b1d0953e9d0e (patch) | |
tree | 04143243afe34c31861d28ddd165a533b52b8efe /sc/source/ui/formdlg/dwfunctr.cxx | |
parent | f9d43667505505da0a25a233032c534d565469ae (diff) |
#69391#; erase leading and trailing chars
Diffstat (limited to 'sc/source/ui/formdlg/dwfunctr.cxx')
-rw-r--r-- | sc/source/ui/formdlg/dwfunctr.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx index 5acf1490c6b7..1728f581d876 100644 --- a/sc/source/ui/formdlg/dwfunctr.cxx +++ b/sc/source/ui/formdlg/dwfunctr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dwfunctr.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: sab $ $Date: 2002-11-26 08:12:14 $ + * last change: $Author: sab $ $Date: 2002-11-26 15:05:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -955,7 +955,7 @@ void ScFunctionDockWin::DoEnter(BOOL bOk) //@@ ??? if(nArgs>0) { aFirstArgStr = *(pDesc->aDefArgNames[0]); - aFirstArgStr.EraseAllChars(); + aFirstArgStr.EraseLeadingAndTrailingChars(); aFirstArgStr.SearchAndReplaceAll(' ', '_'); aArgStr = aFirstArgStr; if ( nArgs != VAR_ARGS ) @@ -967,6 +967,7 @@ void ScFunctionDockWin::DoEnter(BOOL bOk) //@@ ??? { aArgStr += aArgSep; String sTmp(*(pDesc->aDefArgNames[nArg])); + sTmp.EraseLeadingAndTrailingChars(); sTmp.SearchAndReplaceAll(' ', '_'); aArgStr += sTmp; } |