wizards/com/sun/star/wizards/db/FieldColumn.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d46d79f2261eb6be2fb74254f09520f5ef2baa88
Author: Damjan Jovanovic <dam...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to