Changeset 13444 in josm


Ignore:
Timestamp:
2018-02-19T00:41:39+01:00 (7 months ago)
Author:
Don-vip
Message:

see #8039, see #10456 - fix crash with rendering of virtual nodes

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

Legend:

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

    r13435 r13444  
    265265
    266266        virtualManager.clear();
    267         if ((mode == Mode.MOVE || mode == Mode.SELECT)
    268                 && !dragInProgress() && virtualManager.activateVirtualNodeNearPoint(e.getPoint())) {
     267        if (mode == Mode.MOVE && !dragInProgress() && virtualManager.activateVirtualNodeNearPoint(e.getPoint())) {
    269268            DataSet ds = getLayerManager().getActiveDataSet();
    270269            if (ds != null && drawTargetHighlight) {
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java

    r12846 r13444  
    128128     */
    129129    public void drawVirtualNodes(DataSet data, BBox bbox) {
    130         if (virtualNodeSize == 0 || data == null || bbox == null)
     130        if (virtualNodeSize == 0 || data == null || bbox == null || data.isReadOnly())
    131131            return;
    132132        // print normal virtual nodes
Note: See TracChangeset for help on using the changeset viewer.