openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1717370 - /openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java
Date Tue, 01 Dec 2015 03:42:43 GMT
Author: damjan
Date: Tue Dec  1 03:42:43 2015
New Revision: 1717370

URL: http://svn.apache.org/viewvc?rev=1717370&view=rev
Log:
Calculate substring indexes properly, avoiding an unnecessary IndexOutOfBoundsException.

Patch by: me


Modified:
    openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java

Modified: openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java?rev=1717370&r1=1717369&r2=1717370&view=diff
==============================================================================
--- openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java (original)
+++ openoffice/trunk/main/wizards/com/sun/star/wizards/db/FieldColumn.java Tue Dec  1 03:42:43
2015
@@ -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)



Mime
View raw message