Revision 2867
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.swing/org.gvsig.vectorediting.swing.impl/src/main/java/org/gvsig/vectorediting/swing/impl/DefaultEditingBehavior.java | ||
---|---|---|
226 | 226 |
((ITextSymbol) symbol).setText(status.getText()); |
227 | 227 |
} |
228 | 228 |
Geometry geom = status.getGeometry(); |
229 |
if(geom.getGeometryType().isTypeOf(Geometry.TYPES.MULTIPOINT)){ |
|
230 |
MultiPoint multipoint = (MultiPoint)geom; |
|
231 |
for (Geometry geometry : multipoint) { |
|
229 |
if(geom != null){ |
|
230 |
if(geom.getGeometryType().isTypeOf(Geometry.TYPES.MULTIPOINT)){ |
|
231 |
MultiPoint multipoint = (MultiPoint)geom; |
|
232 |
for (Geometry geometry : multipoint) { |
|
233 |
editingContext.getMapControl().getMapControlDrawer() |
|
234 |
.draw(geometry, symbol); |
|
235 |
} |
|
236 |
} else { |
|
232 | 237 |
editingContext.getMapControl().getMapControlDrawer() |
233 |
.draw(geometry, symbol);
|
|
238 |
.draw(geom, symbol); |
|
234 | 239 |
} |
235 |
} else { |
|
236 |
editingContext.getMapControl().getMapControlDrawer() |
|
237 |
.draw(geom, symbol); |
|
238 | 240 |
} |
239 | 241 |
} |
240 | 242 |
} |
Also available in: Unified diff