Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 13675)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 13676)
@@ -899,13 +899,23 @@
     }
 
-    public void drawRestriction(Image img, Point pVia, double vx, double vx2, double vy, double vy2, double angle, boolean selected) {
+    /**
+     * Draws a restriction.
+     * @param img symbol image
+     * @param pVia "via" node
+     * @param vx X offset
+     * @param vy Y offset
+     * @param angle the rotated angle, in degree, clockwise
+     * @param selected if true, draws a selection rectangle
+     * @since 13676
+     */
+    public void drawRestriction(Image img, Point pVia, double vx, double vy, double angle, boolean selected) {
         // rotate image with direction last node in from to, and scale down image to 16*16 pixels
         Image smallImg = ImageProvider.createRotatedImage(img, angle, new Dimension(16, 16));
         int w = smallImg.getWidth(null), h = smallImg.getHeight(null);
-        g.drawImage(smallImg, (int) (pVia.x+vx+vx2)-w/2, (int) (pVia.y+vy+vy2)-h/2, nc);
+        g.drawImage(smallImg, (int) (pVia.x+vx)-w/2, (int) (pVia.y+vy)-h/2, nc);
 
         if (selected) {
             g.setColor(isInactiveMode ? inactiveColor : relationSelectedColor);
-            g.drawRect((int) (pVia.x+vx+vx2)-w/2-2, (int) (pVia.y+vy+vy2)-h/2-2, w+4, h+4);
+            g.drawRect((int) (pVia.x+vx)-w/2-2, (int) (pVia.y+vy)-h/2-2, w+4, h+4);
         }
     }
@@ -1082,5 +1092,5 @@
 
         drawRestriction(icon.getImage(disabled),
-                pVia, vx, vx2, vy, vy2, iconAngle, r.isSelected());
+                pVia, vx+vx2, vy+vy2, iconAngle, r.isSelected());
     }
 
@@ -1551,6 +1561,7 @@
      * @param checkOuterMember <code>true</code> if we should also add {@link #FLAG_OUTERMEMBER_OF_SELECTED}
      * @return The flag.
-     */
-    public static int computeFlags(OsmPrimitive primitive, boolean checkOuterMember) {
+     * @since 13676 (signature)
+     */
+    public static int computeFlags(IPrimitive primitive, boolean checkOuterMember) {
         if (primitive.isDisabled()) {
             return FLAG_DISABLED;
