summaryrefslogtreecommitdiff
path: root/l10ntools/source/gConvXcu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/gConvXcu.cxx')
-rw-r--r--l10ntools/source/gConvXcu.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/l10ntools/source/gConvXcu.cxx b/l10ntools/source/gConvXcu.cxx
index 0352e988a470..fe5d9214b2cb 100644
--- a/l10ntools/source/gConvXcu.cxx
+++ b/l10ntools/source/gConvXcu.cxx
@@ -125,8 +125,12 @@ void convert_xcu::stopCollectData(char *syyText)
if (useText.size()) {
// locate key and extract it
- for (nL = 0; nL < (int)mcStack.size() -1; ++nL)
- useKey += "." + mcStack[nL];
+ int max = (int)mcStack.size() - 1;
+ for (nL = 0; nL < max; ++nL) {
+ useKey += mcStack[nL];
+ if (nL < max -1)
+ useKey += ".";
+ }
mcMemory.setSourceKey(miLineNo, msSourceFile, useKey, useText, "", "value", mcStack[nL], mbMergeMode);
}