Changeset 3201 in josm


Ignore:
Timestamp:
2010-04-23T23:09:20+02:00 (15 years ago)
Author:
stoecker
Message:

fix #4766 (exception), don't display virtual nodes for disabled objects, i18n update

Location:
trunk
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/en_AU.lang

    • Property svn:mime-type set to application/octet-stream
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r3187 r3201  
    490490                        if (!nodesToMerge.isEmpty()) {
    491491                            Command cmd = MergeNodesAction.mergeNodes(Main.main.getEditLayer(),nodesToMerge, targetNode);
    492                             Main.main.undoRedo.add(cmd);
     492                            if(cmd != null)
     493                                Main.main.undoRedo.add(cmd);
    493494                        }
    494495                    }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java

    r3167 r3201  
    307307            GeneralPath path = new GeneralPath();
    308308            for (Way osm: ways){
    309                 if (osm.isUsable() && !osm.isFiltered()) {
     309                if (osm.isUsable() && !osm.isFiltered() && !osm.isDisabled()) {
    310310                    visitVirtual(path, osm);
    311311                }
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java

    r3180 r3201  
    297297            GeneralPath path = new GeneralPath();
    298298            for (Way osm: ways){
    299                 if (osm.isUsable() && !osm.isFiltered()) {
     299                if (osm.isUsable() && !osm.isFiltered() && !osm.isDisabled()) {
    300300                    visitVirtual(path, osm);
    301301                }
Note: See TracChangeset for help on using the changeset viewer.