Ignore:
Timestamp:
2016-06-21T00:58:45+02:00 (4 years ago)
Author:
Don-vip
Message:

see #13001 - replace calls to Main.main.getCurrentDataSet() by Main.getLayerManager().getEditDataSet()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/HighlightHelper.java

    r9419 r10446  
    122122     */
    123123    public void findAllHighlighted() {
    124         DataSet ds = Main.main.getCurrentDataSet();
     124        DataSet ds = Main.getLayerManager().getEditDataSet();
    125125        if (ds != null) {
    126126            highlightedPrimitives.addAll(ds.allNonDeletedPrimitives());
     
    132132     */
    133133    public static void clearAllHighlighted() {
    134         DataSet ds = Main.main.getCurrentDataSet();
     134        DataSet ds = Main.getLayerManager().getEditDataSet();
    135135        if (ds != null) {
    136136            for (OsmPrimitive p: ds.allNonDeletedPrimitives()) {
Note: See TracChangeset for help on using the changeset viewer.