[Schmitzm-commits] r266 - trunk/src/schmitzm/jfree/feature/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Aug 1 14:09:19 CEST 2009


Author: alfonx
Date: 2009-08-01 14:09:18 +0200 (Sat, 01 Aug 2009)
New Revision: 266

Modified:
   trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java
Log:
* Hackingsession: -1 / +1 modifications in attributeCount (Chart-Stuff)

Modified: trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java
===================================================================
--- trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java	2009-08-01 11:44:27 UTC (rev 265)
+++ trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java	2009-08-01 12:09:18 UTC (rev 266)
@@ -206,7 +206,7 @@
     private void updateAttributeCount() {
       // attribute names define the number of attributes, also
       // if there are "more" normalize constraints specified
-      maxAttrIdx = LangUtil.max( attrNames.keySet() ) + 1;
+      maxAttrIdx = LangUtil.max( attrNames.keySet() );
       
       if ( maxAttrCount > 0 && maxAttrIdx >= maxAttrCount )
         throw new IllegalArgumentException("Only "+maxAttrCount+" attributes can be specified for "+LangUtil.getSimpleClassName(this));
@@ -227,7 +227,7 @@
      */
     @Override
     public int getAttributeCount() {
-      return maxAttrIdx;
+      return maxAttrIdx+1;
     }
 
     /**



More information about the Schmitzm-commits mailing list