Changeset 9444 in josm


Ignore:
Timestamp:
2016-01-14T18:10:23+01:00 (9 years ago)
Author:
simon04
Message:

see #12335 - Enable "Angle snapping", "Dual alignment" only in corresponding modes (patch by kolesar)

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r9409 r9444  
    17921792        @Override
    17931793        protected void updateEnabledState() {
    1794             setEnabled(Main.main != null && Main.main.hasEditLayer());
     1794            setEnabled(Main.map != null && Main.map.mapMode instanceof DrawAction);
    17951795        }
    17961796    }
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r9409 r9444  
    202202        @Override
    203203        protected void updateEnabledState() {
    204             setEnabled(Main.main != null && Main.main.hasEditLayer());
     204            setEnabled(Main.map != null && Main.map.mapMode instanceof ExtrudeAction);
    205205        }
    206206    }
Note: See TracChangeset for help on using the changeset viewer.