diff options
-rw-r--r-- | wizards/com/sun/star/wizards/db/QueryMetaData.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/db/QueryMetaData.java b/wizards/com/sun/star/wizards/db/QueryMetaData.java index 1286c9f698dd..abbc6036754c 100644 --- a/wizards/com/sun/star/wizards/db/QueryMetaData.java +++ b/wizards/com/sun/star/wizards/db/QueryMetaData.java @@ -147,14 +147,15 @@ public class QueryMetaData extends CommandMetaData ArrayList<String> CommandNames = new ArrayList<String>(1); for (int i = 0; i < _FieldNames.length; i++) { - String CurCommandName = PropertyNames.EMPTY_STRING; String[] MetaList = JavaTools.ArrayoutofString(_FieldNames[i], "."); if (MetaList.length > 1) { + StringBuilder sb = new StringBuilder(PropertyNames.EMPTY_STRING); for (int a = 0; a < MetaList.length - 1; a++) { - CurCommandName += MetaList[a]; + sb.append(MetaList[a]); } + String CurCommandName = sb.toString(); if (!CommandNames.contains(CurCommandName)) { CommandNames.add(CurCommandName); @@ -166,8 +167,6 @@ public class QueryMetaData extends CommandMetaData return sIncludedCommandNames; } - - public void initializeFieldTitleSet() { try |