summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/ui/dlg/FormulaHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx
index 73ef78243498..fe78f3a59f6f 100644
--- a/formula/source/ui/dlg/FormulaHelper.cxx
+++ b/formula/source/ui/dlg/FormulaHelper.cxx
@@ -201,7 +201,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
return nStart;
sal_Int32 nFStart = FUNC_NOTFOUND;
- sal_Int32 nParPos = nStart;
+ sal_Int32 nParPos = bBack ? ::std::min( nStart, nStrLen - 1) : nStart;
bool bRepeat;
do