Revision 23458 branches/v2_0_0_prep/libraries/libDwg/src/com/iver/cit/jdwglib/util/FMapUtil.java
FMapUtil.java | ||
---|---|---|
42 | 42 |
// } |
43 | 43 |
|
44 | 44 |
private static GeneralPathX getGeneralPathX(List pts){ |
45 |
if(pts == null || pts.size()==0){ |
|
46 |
return null; |
|
47 |
} |
|
48 |
|
|
49 |
Object firstVertex = pts.get(0); |
|
50 |
|
|
51 |
if(firstVertex == null){ |
|
52 |
return null; |
|
53 |
} |
|
45 | 54 |
GeneralPathX genPathX = new GeneralPathX(); |
46 | 55 |
|
47 |
Object firstVertex = pts.get(0); |
|
48 | 56 |
double[] coordinate = null; |
49 | 57 |
if(firstVertex instanceof double[]) |
50 | 58 |
coordinate = (double[])firstVertex; |
Also available in: Unified diff