Ignore:
Timestamp:
2017-05-15T18:00:30+02:00 (7 years ago)
Author:
michael2402
Message:

Remove unneccessary Main.map.repaint() - invalidate is enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java

    r12156 r12172  
    295295        // ...sync with layer visibility instead to avoid having two ways to hide everything
    296296        layer.setVisible(v == 1 || !s.isSelectionEmpty());
    297 
    298         if (Main.isDisplayingMapView()) {
    299             Main.map.mapView.preferenceChanged(null);
    300         }
    301         if (Main.map != null) {
    302             Main.map.repaint();
    303         }
    304297    }
    305298}
Note: See TracChangeset for help on using the changeset viewer.