Changeset 31361 in osm for applications/editors/josm


Ignore:
Timestamp:
2015-07-09T22:49:07+02:00 (9 years ago)
Author:
stoecker
Message:

fix build error

Location:
applications/editors/josm/plugins/buildings_tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/buildings_tools/build.xml

    r31120 r31361  
    44    <property name="commit.message" value="BuildingTools: Alt key to disable tags"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="8338"/>
     6    <property name="plugin.main.version" value="8549"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/AdvancedSettingsDialog.java

    r30045 r31361  
    4040
    4141    public final void saveSettings() {
    42         tagsModel.applyToTags(ToolSettings.getTags(), false);
    43         ToolSettings.saveTags();
     42        ToolSettings.saveTags(tagsModel.getTags());
    4443        ToolSettings.setBBMode(cBigMode.isSelected());
    4544        ToolSettings.setSoftCursor(cSoftCur.isSelected());
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r31095 r31361  
    108108     */
    109109    private double projection1(EastNorth p) {
    110         final EastNorth vec = en[0].sub(p);
     110        final EastNorth vec = p.subtract(en[0]);
    111111        return (Math.sin(heading) * vec.east() + Math.cos(heading) * vec.north()) / meter;
    112112    }
     
    118118     */
    119119    private double projection2(EastNorth p) {
    120         final EastNorth vec = en[0].sub(p);
     120        final EastNorth vec = p.subtract(en[0]);
    121121        return (Math.cos(heading) * vec.east() - Math.sin(heading) * vec.north()) / meter;
    122122    }
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/ToolSettings.java

    r30737 r31361  
    5353    }
    5454
    55     public static void saveTags() {
     55    public static void saveTags(Map<String, String> tags) {
     56        TAGS.clear();
     57        TAGS.putAll(tags);
    5658        ArrayList<String> values = new ArrayList<>(TAGS.size() * 2);
    5759        for (Entry<String, String> entry : TAGS.entrySet()) {
Note: See TracChangeset for help on using the changeset viewer.