Ignore:
Timestamp:
2017-11-23T03:14:45+01:00 (2 years ago)
Author:
Don-vip
Message:

fix #14778 - stroke not reset after drawing of large areas produced graphics artifacts when painting world bounds and selection rectangles, bug seen when filtering ways only, as way rendering reset the stroke

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

Legend:

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

    r13137 r13150  
    9191        MapFrame.removeMapModeChangeListener(this);
    9292        filterModel.model.clearFilterFlags();
    93         MainApplication.getMap().mapView.repaint();
     93        MainApplication.getLayerManager().invalidateEditLayer();
    9494    }
    9595
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractMapViewPaintable.java

    r12107 r13150  
    8585     */
    8686    public void invalidate() {
     87        PaintableInvalidationEvent event = new PaintableInvalidationEvent(this);
    8788        for (PaintableInvalidationListener l : invalidationListeners) {
    88             l.paintableInvalidated(new PaintableInvalidationEvent(this));
     89            l.paintableInvalidated(event);
    8990        }
    9091    }
  • trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java

    r13133 r13150  
    397397    }
    398398
     399    /**
     400     * Invalidates current edit layer, if any. Does nothing of there is no edit layer.
     401     * @since 13150
     402     */
     403    public void invalidateEditLayer() {
     404        if (editLayer != null) {
     405            editLayer.invalidate();
     406        }
     407    }
     408
    399409    @Override
    400410    protected synchronized void realResetState() {
Note: See TracChangeset for help on using the changeset viewer.