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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Aug 1 13:44:28 CEST 2009


Author: mojays
Date: 2009-08-01 13:44:27 +0200 (Sat, 01 Aug 2009)
New Revision: 265

Modified:
   trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java
Log:
FeatureChartStyle.Dummy: bugfix for attribute count

Modified: trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java
===================================================================
--- trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java	2009-08-01 10:59:19 UTC (rev 264)
+++ trunk/src/schmitzm/jfree/feature/style/FeatureChartStyle.java	2009-08-01 11:44:27 UTC (rev 265)
@@ -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() );
+      maxAttrIdx = LangUtil.max( attrNames.keySet() ) + 1;
       
       if ( maxAttrCount > 0 && maxAttrIdx >= maxAttrCount )
         throw new IllegalArgumentException("Only "+maxAttrCount+" attributes can be specified for "+LangUtil.getSimpleClassName(this));



More information about the Schmitzm-commits mailing list