Ignore:
Timestamp:
2013-03-24T06:51:38+01:00 (13 years ago)
Author:
zverik
Message:

small fixes in iodb plugin

Location:
applications/editors/josm/plugins/imagery_offset_db/src/iodb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetTools.java

    r29384 r29390  
    140140        if( d < 950 )    return formatDistance(d,        tr("m"),  false );
    141141        if( d < 9500 )   return formatDistance(d / 1000, tr("km"), true);
    142         return formatDistance(d / 1000, tr("km"), false);
     142        if( d < 1e6 )    return formatDistance(d / 1000, tr("km"), false);
     143        return "\u221E";
    143144    }
    144145
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialogButton.java

    r29388 r29390  
    8989        topLine.add(authorAndDateLabel);
    9090        topLine.add(Box.createHorizontalGlue());
     91        topLine.add(Box.createHorizontalStrut(10));
    9192        topLine.add(distanceLabel);
    9293
     
    177178            Graphics2D g2 = (Graphics2D)g.create();
    178179            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    179             if( direction >= 0 ) {
     180            if( !isCalibration ) {
    180181                g2.setColor(Color.black);
    181182                Point c = new Point(x + getIconWidth() / 2, y + getIconHeight() / 2);
Note: See TracChangeset for help on using the changeset viewer.