Changeset 10140 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-04-11T16:50:16+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r10001 r10140 83 83 import com.kitfox.svg.SVGDiagram; 84 84 import com.kitfox.svg.SVGUniverse; 85 import org.openstreetmap.josm.data.osm.DataSet; 85 86 86 87 /** … … 1312 1313 // Check if the current styles have special icon for tagged nodes. 1313 1314 if (primitive instanceof org.openstreetmap.josm.data.osm.Node) { 1314 Pair<StyleElementList, Range> nodeStyles = MapPaintStyles.getStyles().generateStyles(primitive, 100, false); 1315 Pair<StyleElementList, Range> nodeStyles; 1316 DataSet ds = primitive.getDataSet(); 1317 if (ds != null) { 1318 ds.getReadLock().lock(); 1319 } 1320 try { 1321 nodeStyles = MapPaintStyles.getStyles().generateStyles(primitive, 100, false); 1322 } finally { 1323 if (ds != null) { 1324 ds.getReadLock().unlock(); 1325 } 1326 } 1315 1327 for (StyleElement style : nodeStyles.a) { 1316 1328 if (style instanceof NodeElement) {
Note:
See TracChangeset
for help on using the changeset viewer.