Changeset 3666 in josm


Ignore:
Timestamp:
2010-11-21T00:46:06+01:00 (14 years ago)
Author:
bastiK
Message:

fix missing repaint after active layer change

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r3632 r3666  
    459459            mapMode.enterMode();
    460460        }
     461        // invalidate repaint cache
     462        Main.map.mapView.preferenceChanged(null);
    461463    }
    462464
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r3664 r3666  
    2121
    2222import javax.swing.AbstractAction;
     23import javax.swing.Action;
    2324import javax.swing.DefaultCellEditor;
    2425import javax.swing.DefaultListSelectionModel;
     
    3637import javax.swing.ListSelectionModel;
    3738import javax.swing.UIManager;
     39import javax.swing.event.ListDataEvent;
    3840import javax.swing.event.ListSelectionEvent;
    3941import javax.swing.event.ListSelectionListener;
     
    204206                    @Override
    205207                    public void makeVisible(int row, Layer layer) {
    206                         System.err.println(Thread.currentThread());
    207208                        layerList.scrollToVisible(row, 0);
    208209                        layerList.repaint();
     
    376377        public ShowHideLayerAction(Layer layer) throws IllegalArgumentException {
    377378            this();
     379            putValue(NAME, tr("Show/Hide"));
    378380            CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    379381            this.layer = layer;
     
    12321234     */
    12331235    public ShowHideLayerAction createShowHideLayerAction() {
    1234         return new ShowHideLayerAction();
     1236        ShowHideLayerAction act = new ShowHideLayerAction();
     1237        act.putValue(Action.NAME, tr("Show/Hide"));
     1238        return act;
    12351239    }
    12361240
Note: See TracChangeset for help on using the changeset viewer.