Changeset 13135 in josm for trunk


Ignore:
Timestamp:
2017-11-20T01:07:23+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #15535, see #11924 - make extrude mode work with Java9+

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r12987 r13135  
    10951095                        g2.setStroke(helperStrokeDash);
    10961096                        // Draw a guideline along the normal.
    1097                         Line2D normline;
    10981097                        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));
    11011099                        // Draw right angle marker on initial position, only when moving at right angle
    11021100                        if (activeMoveDirection.perpendicular) {
     
    11911189     */
    11921190    private static Line2D createSemiInfiniteLine(Point2D start, Point2D unitvector, Graphics2D g) {
    1193         Rectangle bounds = g.getDeviceConfiguration().getBounds();
     1191        Rectangle bounds = g.getClipBounds();
    11941192        try {
    11951193            AffineTransform invtrans = g.getTransform().createInverse();
Note: See TracChangeset for help on using the changeset viewer.