summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star
diff options
context:
space:
mode:
authorDamjan Jovanovic <damjan@apache.org>2015-12-01 03:42:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-02 13:44:24 +0000
commitcc30af5b89747f8684e90d5d3352672190dbbf9c (patch)
treefd195237c375ebe2ab2204699c8873e46f0865a3 /wizards/com/sun/star
parent23d5775ecf04c001ecf86b6012aef4d1a3f2f063 (diff)
Calculate substring indexes properly, avoiding an unnecessary IndexOutOfBoundsException.
Patch by: me (cherry picked from commit d46d79f2261eb6be2fb74254f09520f5ef2baa88)
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r--wizards/com/sun/star/wizards/db/FieldColumn.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/db/FieldColumn.java b/wizards/com/sun/star/wizards/db/FieldColumn.java
index 8ff86fdb5927..77650490a904 100644
--- a/wizards/com/sun/star/wizards/db/FieldColumn.java
+++ b/wizards/com/sun/star/wizards/db/FieldColumn.java
@@ -136,7 +136,7 @@ public class FieldColumn
*/
private String getOnlyFieldName(String _DisplayFieldName, String _CommandName)
{
- return _DisplayFieldName.substring(_CommandName.length() + 1, _DisplayFieldName.length());
+ return _DisplayFieldName.substring(_CommandName.length() + 1);
}
public static String composeDisplayFieldName(String _sCommandName, String _sFieldName)