diff --git a/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java b/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
index b27acb4bc..bb7256f4a 100644
|
a
|
b
|
public class StyledMapRenderer extends AbstractMapRenderer {
|
| 620 | 620 | FontRenderContext frc = g.getFontRenderContext(); |
| 621 | 621 | Rectangle2D bounds = text.font.getStringBounds(s, frc); |
| 622 | 622 | |
| 623 | | double x = p.getInViewX() + bs.xOffset; |
| 624 | | double y = p.getInViewY() + bs.yOffset; |
| | 623 | double x = bs.xOffset; |
| | 624 | double y = bs.yOffset; |
| 625 | 625 | /** |
| 626 | 626 | * |
| 627 | 627 | * left-above __center-above___ right-above |
| … |
… |
public class StyledMapRenderer extends AbstractMapRenderer {
|
| 660 | 660 | } else throw new AssertionError(); |
| 661 | 661 | } |
| 662 | 662 | |
| 663 | | final MapViewPoint viewPoint = mapState.getForView(x, y); |
| | 663 | final MapViewPoint viewPoint = mapState.getForView(p.getInViewX(), p.getInViewY()); |
| 664 | 664 | final AffineTransform at = new AffineTransform(); |
| 665 | 665 | at.setToTranslation( |
| 666 | 666 | Math.round(viewPoint.getInViewX()), |
| … |
… |
public class StyledMapRenderer extends AbstractMapRenderer {
|
| 668 | 668 | if (!RotationAngle.NO_ROTATION.equals(text.rotationAngle)) { |
| 669 | 669 | at.rotate(text.rotationAngle.getRotationAngle(n)); |
| 670 | 670 | } |
| | 671 | at.translate(x, y); |
| 671 | 672 | displayText(n, text, s, at); |
| 672 | 673 | g.setFont(defaultFont); |
| 673 | 674 | } |