Revision 22175 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/rendering/legend/styling/AttrInTableLabelingStrategy.java
AttrInTableLabelingStrategy.java | ||
---|---|---|
116 | 116 |
} else if (idHeightField != -1) { |
117 | 117 |
// text size is defined in the table |
118 | 118 |
try { |
119 |
size = ((Number) feature.get(idHeightField)).doubleValue() * fontScaleFactor; |
|
119 |
Object obj=feature.get(idHeightField); |
|
120 |
if (obj!=null) |
|
121 |
size = ((Number) obj).doubleValue() * fontScaleFactor; |
|
122 |
else |
|
123 |
size=0; |
|
120 | 124 |
} catch (ClassCastException ccEx) { |
121 | 125 |
if (!NullValue.class.equals(feature.get(idHeightField).getClass())) { |
122 | 126 |
throw new ReadException("Unknown", ccEx); |
Also available in: Unified diff