Revision 34978 branches/v2_0_0_prep/libraries/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/styling/AttrInTableLabelingStrategy.java

View differences:

AttrInTableLabelingStrategy.java
187 187
					} else if (heightFieldName != null) {
188 188
						// text size is defined in the table
189 189
						try {
190
							size = feature.getDouble(heightPos);
190
							size = feature.getDouble(fields.get(heightPos));
191 191
						} catch (Exception e) {
192 192
							logger.
193 193
								warn("Null text height value for text '{}'", feature.getString(fields.get(textPos)));
......
217 217
					} else if (colorFieldName != null) {
218 218
						// text size is defined in the table
219 219
						try {
220
							color = new Color(feature.getInt(colorPos));
220
							color = new Color(feature.getInt(fields.get(colorPos)));
221 221
						} catch (ClassCastException ccEx) {
222
							if (feature.get(colorPos) != null) {
222
							if (feature.get(fields.get(colorPos)) != null) {
223 223
								throw new ReadException("Unknown", ccEx);
224 224
							}
225 225
							logger.warn(
......
237 237
					double rotation = 0D;
238 238
					if (rotationFieldName != null) {
239 239
						// text rotation is defined in the table
240
						rotation = -Math.toRadians(((Number) feature.get(rotationPos)).doubleValue());
240
						rotation = -Math.toRadians(((Number) feature.get(fields.get(rotationPos))).doubleValue());
241 241
					}
242 242

  
243 243
					Geometry geom = feature.getDefaultGeometry();

Also available in: Unified diff