Changeset 1297 in josm for trunk/src/org


Ignore:
Timestamp:
2009-01-18T18:48:52+01:00 (16 years ago)
Author:
ulfl
Message:

hmm, fix the logic behind this new mappaint.lefthandtraffic setting to be correct ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java

    r1296 r1297  
    686686
    687687        if(pFrom.x >= pVia.x && pFrom.y >= pVia.y) {
    688             if(leftHandTraffic) {
     688            if(!leftHandTraffic) {
    689689                vx2 = distanceFromWay * Math.cos(Math.toRadians(fromAngleDeg - 90));
    690690                vy2 = distanceFromWay * Math.sin(Math.toRadians(fromAngleDeg - 90));
     
    696696        }
    697697        if(pFrom.x < pVia.x && pFrom.y >= pVia.y) {
    698             if(leftHandTraffic) {
     698            if(!leftHandTraffic) {
    699699                vx2 = distanceFromWay * Math.sin(Math.toRadians(fromAngleDeg));
    700700                vy2 = distanceFromWay * Math.cos(Math.toRadians(fromAngleDeg));
     
    706706        }
    707707        if(pFrom.x < pVia.x && pFrom.y < pVia.y) {
    708             if(leftHandTraffic) {
     708            if(!leftHandTraffic) {
    709709                vx2 = distanceFromWay * Math.cos(Math.toRadians(fromAngleDeg + 90));
    710710                vy2 = distanceFromWay * Math.sin(Math.toRadians(fromAngleDeg + 90));
     
    716716        }
    717717        if(pFrom.x >= pVia.x && pFrom.y < pVia.y) {
    718             if(leftHandTraffic) {
     718            if(!leftHandTraffic) {
    719719                vx2 = distanceFromWay * Math.sin(Math.toRadians(fromAngleDeg + 180));
    720720                vy2 = distanceFromWay * Math.cos(Math.toRadians(fromAngleDeg + 180));
Note: See TracChangeset for help on using the changeset viewer.