Changeset 994 in josm for trunk/src/org
- Timestamp:
- 2008-09-19T13:21:21+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r941 r994 120 120 public final LinkedList<ModifiedChangedListener> listenerModified = new LinkedList<ModifiedChangedListener>(); 121 121 public final LinkedList<DataChangeListener> listenerDataChanged = new LinkedList<DataChangeListener>(); 122 123 private SimplePaintVisitor wireframeMapPainter = new SimplePaintVisitor(); 124 private MapPaintVisitor standardMapPainter = new MapPaintVisitor(); 125 122 126 123 /** 127 124 * Construct a OsmDataLayer. … … 166 163 } 167 164 168 if (Main.pref.getBoolean("draw.wireframe")) { 169 wireframeMapPainter.setGraphics(g); 170 wireframeMapPainter.setNavigatableComponent(mv); 171 wireframeMapPainter.inactive = inactive; 172 wireframeMapPainter.visitAll(data, virtual); 173 } 165 166 SimplePaintVisitor painter; 167 if (Main.pref.getBoolean("draw.wireframe")) 168 painter = new SimplePaintVisitor(); 174 169 else 175 { 176 standardMapPainter.setGraphics(g); 177 standardMapPainter.setNavigatableComponent(mv); 178 standardMapPainter.inactive = inactive; 179 standardMapPainter.visitAll(data, virtual); 180 } 170 painter = new MapPaintVisitor(); 171 painter.setGraphics(g); 172 painter.setNavigatableComponent(mv); 173 painter.inactive = inactive; 174 painter.visitAll(data, virtual); 181 175 Main.map.conflictDialog.paintConflicts(g, mv); 182 176 }
Note:
See TracChangeset
for help on using the changeset viewer.