Revision 29131 trunk/extensions/extSymbology/src/org/gvsig/symbology/gui/layerproperties/DotDensity.java
DotDensity.java | ||
---|---|---|
416 | 416 |
int shapeType = layer.getShapeType(); |
417 | 417 |
|
418 | 418 |
// shapeType should be always polygon |
419 |
if (shapeType != FShape.POLYGON) {
|
|
419 |
if ((shapeType%FShape.Z) != FShape.POLYGON) {
|
|
420 | 420 |
NotificationManager.addError(PluginServices.getText(this, "cannot_apply_to_a_non_polygon_layer"), new Exception()); |
421 | 421 |
} |
422 | 422 |
|
... | ... | |
745 | 745 |
try { |
746 | 746 |
FLyrVect lyr = (FLyrVect) layer; |
747 | 747 |
|
748 |
if (lyr.getShapeType() != FShape.POLYGON)
|
|
748 |
if ((lyr.getShapeType()%FShape.Z) != FShape.POLYGON)
|
|
749 | 749 |
return false; |
750 | 750 |
|
751 | 751 |
SelectableDataSource sds; |
Also available in: Unified diff