Changeset 31095 in osm for applications


Ignore:
Timestamp:
2015-04-21T15:55:12+02:00 (10 years ago)
Author:
upliner
Message:

BuildingTools: Alt key to disable tags

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

Legend:

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

    r31093 r31095  
    22<project name="buildings_tools" default="dist" basedir=".">
    33    <!-- enter the SVN commit message -->
    4     <property name="commit.message" value="BuildingTools: add icon for &quot;merge address&quot; function"/>
     4    <property name="commit.message" value="BuildingTools: Alt key to disable tags"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    66    <property name="plugin.main.version" value="7128"/>
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r30737 r31095  
    300300                cmds.add(new AddCommand(nodes[i]));
    301301        }
    302         w.setKeys(ToolSettings.getTags());
    303302        cmds.add(new AddCommand(w));
    304303
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java

    r31091 r31095  
    309309        if (building.getLength() != 0) {
    310310            Way w = building.create();
    311             if (w != null && ToolSettings.isUsingAddr())
    312                 showAddrDialog(w);
    313             if (ToolSettings.isAutoSelect()
    314                  && (Main.main.getCurrentDataSet().getSelected().isEmpty() || isShiftDown)) {
    315                 Main.main.getCurrentDataSet().setSelected(w);
     311            if (w != null) {
     312                if (!isAltDown || ToolSettings.isUsingAddr())
     313                    w.setKeys(ToolSettings.getTags());
     314                if (ToolSettings.isUsingAddr())
     315                    showAddrDialog(w);
     316                if (ToolSettings.isAutoSelect()
     317                        && (Main.main.getCurrentDataSet().getSelected().isEmpty() || isShiftDown)) {
     318                    Main.main.getCurrentDataSet().setSelected(w);
     319                }
    316320            }
    317321        }
Note: See TracChangeset for help on using the changeset viewer.