Changeset 12058 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-04T09:53:02+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSelectionListener.java
r12048 r12058 29 29 * @since 12048 30 30 */ 31 publicinterface SelectionChangeEvent {31 interface SelectionChangeEvent { 32 32 /** 33 33 * Gets the previous selection -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r12057 r12058 1245 1245 beginUpdate(); 1246 1246 try { 1247 Collection<OsmPrimitive> toCleanUp = getPrimitives(primitive -> primitive.isDeleted() && (!primitive.isVisible() || primitive.isNew())); 1247 Collection<OsmPrimitive> toCleanUp = getPrimitives( 1248 primitive -> primitive.isDeleted() && (!primitive.isVisible() || primitive.isNew())); 1248 1249 if (!toCleanUp.isEmpty()) { 1249 1250 clearSelection(toCleanUp.stream().map(OsmPrimitive::getPrimitiveId)); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r12054 r12058 143 143 */ 144 144 private static long floatToFixed(double number, int totalBits, int afterDecimalBits) { 145 long value = (long) (number * (1 l<< afterDecimalBits));146 long highestBitMask = 1 l<< totalBits - 1;145 long value = (long) (number * (1L << afterDecimalBits)); 146 long highestBitMask = 1L << totalBits - 1; 147 147 long valueMask = highestBitMask - 1; 148 148 long signBit = number < 0 ? 0 : highestBitMask; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java
r12047 r12058 330 330 } 331 331 332 private final class EmptyFillRow extends AbstractMergePanel.MergeRow {332 private static final class EmptyFillRow extends AbstractMergePanel.MergeRow { 333 333 @Override 334 334 protected JComponent merged() { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresets.java
r12042 r12058 115 115 KeyedItem ki = (KeyedItem) item; 116 116 if (ki.key != null && ki.getValues() != null) { 117 try { 118 PRESET_TAG_CACHE.putAll(ki.key, ki.getValues()); 119 } catch (NullPointerException e) { 120 Main.error(e, p + ": Unable to cache " + ki); 121 } 117 PRESET_TAG_CACHE.putAll(ki.key, ki.getValues()); 122 118 } 123 119 } else if (item instanceof Roles) {
Note:
See TracChangeset
for help on using the changeset viewer.