Changeset 6904 in josm for trunk


Ignore:
Timestamp:
2014-03-09T16:41:11+01:00 (11 years ago)
Author:
akks
Message:

Large GPS points were not centered for draw.rawgps.large.size>3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r6895 r6904  
    752752         ****************************************************************/
    753753        if (large || hdopcircle) {
     754            final int halfSize = largesize/2;
    754755            g.setColor(neutralColor);
    755756            for (WayPoint trkPnt : visibleSegments) {
     
    771772                }
    772773                if (large) {
    773                     g.fillRect(screen.x-1, screen.y-1, largesize, largesize);
     774                    g.fillRect(screen.x-halfSize, screen.y-halfSize, largesize, largesize);
    774775                }
    775776            } // end for trkpnt
Note: See TracChangeset for help on using the changeset viewer.