Changeset 11799 in josm for trunk/src/org
- Timestamp:
- 2017-03-31T22:46:13+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r11782 r11799 114 114 @Override 115 115 public void visit(Way w) { 116 if (!w.isArea() && ElemStyles.hasOnlyArea ElemStyle(w)) {116 if (!w.isArea() && ElemStyles.hasOnlyAreaOrTextStyleElements(w)) { 117 117 List<Node> nodes = w.getNodes(); 118 118 if (nodes.isEmpty()) return; // fix zero nodes bug -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r11779 r11799 538 538 * @since 7486 539 539 */ 540 public static boolean hasOnlyArea ElemStyle(OsmPrimitive p) {540 public static boolean hasOnlyAreaOrTextStyleElements(OsmPrimitive p) { 541 541 MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock(); 542 542 try { … … 548 548 } 549 549 for (StyleElement s : styles) { 550 if (!(s instanceof AreaElement )) {550 if (!(s instanceof AreaElement || s instanceof TextElement)) { 551 551 return false; 552 552 }
Note:
See TracChangeset
for help on using the changeset viewer.