Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java @ 1983:ddb7b7da6199
Fix/survive certain minor malconditions.
flys-artifacts/trunk@3413 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 14 Dec 2011 10:48:36 +0000 |
parents | b30e1710df1d |
children | 4e0878695c5f |
comparison
equal
deleted
inserted
replaced
1982:8afd6a9bb244 | 1983:ddb7b7da6199 |
---|---|
28 * @param series Series to add points to. | 28 * @param series Series to add points to. |
29 * @param points Points to add to series, points[0] to 1st dim, points[1] | 29 * @param points Points to add to series, points[0] to 1st dim, points[1] |
30 * to 2nd dim. | 30 * to 2nd dim. |
31 */ | 31 */ |
32 public static void addPoints(XYSeries series, double[][] points) { | 32 public static void addPoints(XYSeries series, double[][] points) { |
33 if (points == null || points.length == 0) { | 33 if (points == null || points.length <= 1) { |
34 return; | 34 return; |
35 } | 35 } |
36 double [] xPoints = points[0]; | 36 double [] xPoints = points[0]; |
37 double [] yPoints = points[1]; | 37 double [] yPoints = points[1]; |
38 for (int i = 0; i < xPoints.length; i++) { | 38 for (int i = 0; i < xPoints.length; i++) { |