summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg/dwfunctr.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2002-11-26 14:05:18 +0000
committerSascha Ballach <sab@openoffice.org>2002-11-26 14:05:18 +0000
commit744a68860a9a9bf45df6885db3f0b1d0953e9d0e (patch)
tree04143243afe34c31861d28ddd165a533b52b8efe /sc/source/ui/formdlg/dwfunctr.cxx
parentf9d43667505505da0a25a233032c534d565469ae (diff)
#69391#; erase leading and trailing chars
Diffstat (limited to 'sc/source/ui/formdlg/dwfunctr.cxx')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx7
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;
}