Changeset 31361 in osm for applications/editors/josm
- Timestamp:
- 2015-07-09T22:49:07+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/build.xml
r31120 r31361 4 4 <property name="commit.message" value="BuildingTools: Alt key to disable tags"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="8 338"/>6 <property name="plugin.main.version" value="8549"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AdvancedSettingsDialog.java
r30045 r31361 40 40 41 41 public final void saveSettings() { 42 tagsModel.applyToTags(ToolSettings.getTags(), false); 43 ToolSettings.saveTags(); 42 ToolSettings.saveTags(tagsModel.getTags()); 44 43 ToolSettings.setBBMode(cBigMode.isSelected()); 45 44 ToolSettings.setSoftCursor(cSoftCur.isSelected()); -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java
r31095 r31361 108 108 */ 109 109 private double projection1(EastNorth p) { 110 final EastNorth vec = en[0].sub(p);110 final EastNorth vec = p.subtract(en[0]); 111 111 return (Math.sin(heading) * vec.east() + Math.cos(heading) * vec.north()) / meter; 112 112 } … … 118 118 */ 119 119 private double projection2(EastNorth p) { 120 final EastNorth vec = en[0].sub(p);120 final EastNorth vec = p.subtract(en[0]); 121 121 return (Math.cos(heading) * vec.east() - Math.sin(heading) * vec.north()) / meter; 122 122 } -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java
r30737 r31361 53 53 } 54 54 55 public static void saveTags() { 55 public static void saveTags(Map<String, String> tags) { 56 TAGS.clear(); 57 TAGS.putAll(tags); 56 58 ArrayList<String> values = new ArrayList<>(TAGS.size() * 2); 57 59 for (Entry<String, String> entry : TAGS.entrySet()) {
Note:
See TracChangeset
for help on using the changeset viewer.