Skip to content

Commit

Permalink
bug fix MountainRangeRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
braeun committed Jul 17, 2019
1 parent a254b6b commit 8f5afda
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
Expand Up @@ -92,7 +92,7 @@ public void render(final GraphicsContext gc, final Chart chart, final int dataSe
final int yCountMax = mData.getYDataCount();
checkAndRecreateRenderer(yCountMax);

for (int index = yCountMax - 1; index > 0; index--) {
for (int index = yCountMax - 1; index >= 0; index--) {
final MountainRangeRenderer.Demux3dTo2dDataSet dataSet2D = new Demux3dTo2dDataSet(mData, index);
renderers.get(index).getDatasets().setAll(dataSet2D);
renderers.get(index).render(gc, chart, 0, empty);
Expand Down
Expand Up @@ -127,7 +127,7 @@ private static void checkDimensionConsistency(final double[] xValues, final doub
}
if (zValues[0].length != xValues.length) {
final String msg = String.format("array dimension mismatch: zValues[0].length = %d != xValues.length = %d",
zValues.length, yValues.length);
zValues.length, xValues.length);
throw new IllegalArgumentException(msg);
}
}
Expand Down
27 changes: 26 additions & 1 deletion pom.xml
Expand Up @@ -25,7 +25,7 @@
</modules>

<properties>
<revision>11.0.0</revision>
<revision>11.0.1</revision>
<changelist>-SNAPSHOT</changelist>
<sha1 />
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -137,6 +137,31 @@ maven-plugin-goal-from-the-command-line-in-a-sub-module-of-a/26448447#26448447 -
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 8f5afda

Please sign in to comment.