summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/compiler.cxx3
1 files changed, 2 insertions, 1 deletions
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 )
{