Changeset 13135 in josm
- Timestamp:
- 2017-11-20T01:07:23+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r12987 r13135 1095 1095 g2.setStroke(helperStrokeDash); 1096 1096 // Draw a guideline along the normal. 1097 Line2D normline;1098 1097 Point2D centerpoint = mv.getPoint2D(p1.interpolate(p2, .5)); 1099 normline = createSemiInfiniteLine(centerpoint, normalUnitVector, g2); 1100 g2.draw(normline); 1098 g2.draw(createSemiInfiniteLine(centerpoint, normalUnitVector, g2)); 1101 1099 // Draw right angle marker on initial position, only when moving at right angle 1102 1100 if (activeMoveDirection.perpendicular) { … … 1191 1189 */ 1192 1190 private static Line2D createSemiInfiniteLine(Point2D start, Point2D unitvector, Graphics2D g) { 1193 Rectangle bounds = g.get DeviceConfiguration().getBounds();1191 Rectangle bounds = g.getClipBounds(); 1194 1192 try { 1195 1193 AffineTransform invtrans = g.getTransform().createInverse();
Note:
See TracChangeset
for help on using the changeset viewer.