Changeset 12103 in josm


Ignore:
Timestamp:
2017-05-10T23:59:26+02:00 (7 years ago)
Author:
michael2402
Message:

See #14120: MapView should repaint on temporary layer changes automatically.

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

Legend:

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

    r12091 r12103  
    293293        Main.map.keyDetector.removeKeyListener(this);
    294294        Main.map.keyDetector.removeModifierListener(this);
    295 
    296         // when exiting we let everybody know about the currently selected
    297         // primitives
    298         //
    299         DataSet ds = getLayerManager().getEditDataSet();
    300         if (ds != null) {
    301             ds.fireSelectionChanged();
    302         }
    303295    }
    304296
     
    359351     */
    360352    private void finishDrawing() {
    361         // let everybody else know about the current selection
    362         //
    363         Main.getLayerManager().getEditDataSet().fireSelectionChanged();
    364353        lastUsedNode = null;
    365354        wayIsFinished = true;
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r12099 r12103  
    696696                invalidatedListener.addTo(mvp);
    697697            }
     698            repaint();
    698699            return added;
    699700        }
     
    711712                invalidatedListener.removeFrom(mvp);
    712713            }
     714            repaint();
    713715            return removed;
    714716        }
Note: See TracChangeset for help on using the changeset viewer.