summaryrefslogtreecommitdiff
path: root/cui/source/customize/cfgutil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/customize/cfgutil.cxx')
-rw-r--r--cui/source/customize/cfgutil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 90b5592d44cc..ee9d4a3fdc61 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -1038,7 +1038,7 @@ void CuiConfigGroupListBox::SelectMacro( std::u16string_view rBasic,
if ( nIdx>0 && nIdx != std::u16string_view::npos )
{
// string contains at least 2 tokens
- nIdx = rMacro.rfind('.', nIdx);
+ nIdx = rMacro.rfind('.', nIdx - 1);
if (nIdx != std::u16string_view::npos)
{
// string contains at least 3 tokens