sc/source/core/tool/compiler.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f9547d335f93142c9db08b050a12b97fa7c43dc8
Author:     Julien Nabet <[email protected]>
AuthorDate: Sun Sep 4 16:43:19 2022 +0200
Commit:     Eike Rathke <[email protected]>
CommitDate: Sun Sep 4 23:07:35 2022 +0200

    Fix comment of EnQuote function in sc/compiler
    
    Change-Id: I706cf665745fc6d0b58a6e69b0a8a918ad0d062f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139374
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <[email protected]>

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index d19f1b665201..cdcbdceac23f 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -5502,7 +5502,8 @@ void ScCompiler::LocalizeString( OUString& rName ) const
     ScGlobal::GetAddInCollection()->LocalizeString( rName );
 }
 
-// Put quotes around string if non-alphanumeric characters are contained,
+// Put quotes around string if non-alphanumeric characters are contained
+// or if string contains only numeric characters,
 // quote characters contained within are escaped by '\\'.
 bool ScCompiler::EnQuote( OUString& rStr )
 {

Reply via email to