[Libreoffice-commits] core.git: Branch 'aoo/trunk' - wizards/com
Damjan Jovanovic
damjan at apache.org
Mon Nov 30 20:07:56 PST 2015
wizards/com/sun/star/wizards/db/FieldColumn.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d46d79f2261eb6be2fb74254f09520f5ef2baa88
Author: Damjan Jovanovic <damjan at apache.org>
Date: Tue Dec 1 03:42:43 2015 +0000
Calculate substring indexes properly, avoiding an unnecessary IndexOutOfBoundsException.
Patch by: me
diff --git a/wizards/com/sun/star/wizards/db/FieldColumn.java b/wizards/com/sun/star/wizards/db/FieldColumn.java
index 7a44f86..a33af66 100644
--- a/wizards/com/sun/star/wizards/db/FieldColumn.java
+++ b/wizards/com/sun/star/wizards/db/FieldColumn.java
@@ -138,7 +138,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)
More information about the Libreoffice-commits
mailing list