Ignore:
Timestamp:
18.08.2008 01:27:58 (4 years ago)
Author:
stoecker
Message:

Added virtual nodes in select mode. Closes #595.

File:
1 edited

Legend:

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

    r804 r805  
    148148        @Override public void paint(final Graphics g, final MapView mv) { 
    149149                boolean inactive = Main.map.mapView.getActiveLayer() != this && Main.pref.getBoolean("draw.data.inactive_color", true); 
     150                boolean virtual = !inactive && Main.map.mapView.useVirtualNodes(); 
    150151                if (Main.pref.getBoolean("draw.data.downloaded_area", true)) { 
    151152                        // FIXME this is inefficient; instead a proper polygon has to be built, and instead 
     
    169170                        wireframeMapPainter.setNavigatableComponent(mv); 
    170171                        wireframeMapPainter.inactive = inactive; 
    171                         wireframeMapPainter.visitAll(data); 
     172                        wireframeMapPainter.visitAll(data, virtual); 
    172173                } 
    173174                else 
     
    176177                        standardMapPainter.setNavigatableComponent(mv); 
    177178                        standardMapPainter.inactive = inactive; 
    178                         standardMapPainter.visitAll(data); 
     179                        standardMapPainter.visitAll(data, virtual); 
    179180                } 
    180181                Main.map.conflictDialog.paintConflicts(g, mv); 
Note: See TracChangeset for help on using the changeset viewer.