Ticket #14896: fix-14896.patch
| File fix-14896.patch, 2.5 KB (added by , 9 years ago) |
|---|
-
piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/GenericPicTransformAction.java
78 78 doAction(e); 79 79 prevMousePoint = new Point(e.getPoint()); 80 80 prevEastNorth = Main.map.mapView.getEastNorth(e.getX(), e.getY()); 81 Main.map.mapView.repaint();81 currentLayer.invalidate(); 82 82 } 83 83 } 84 84 … … 101 101 Layer active = Main.getLayerManager().getActiveLayer(); 102 102 if (active instanceof PicLayerAbstract) { 103 103 ((PicLayerAbstract) active).setDrawPoints(value); 104 active.invalidate(); 104 105 } 105 Main.map.mapView.repaint();106 106 } 107 107 } -
piclayer/src/org/openstreetmap/josm/plugins/piclayer/command/TransformCommand.java
35 35 @Override 36 36 public boolean executeCommand() { 37 37 placeTransform(afterTransform); 38 Main.map.mapView.repaint();38 layer.invalidate(); 39 39 return true; 40 40 } 41 41 … … 42 42 @Override 43 43 public void undoCommand() { 44 44 placeTransform(beforeTransform); 45 Main.map.mapView.repaint();45 layer.invalidate(); 46 46 } 47 47 48 48 private void placeTransform(PictureTransform transform) { -
piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java
461 461 transformer.getTransform().concatenate(transform); 462 462 463 463 // Refresh 464 Main.map.mapView.repaint();464 invalidate(); 465 465 } 466 466 467 467 public void loadWorldfile(InputStream is) throws IOException { … … 496 496 tr.shear(shearx, sheary); 497 497 498 498 initialImageScale = 1; 499 Main.map.mapView.repaint();499 invalidate(); 500 500 } 501 501 } 502 502
