Changeset 29390 in osm for applications/editors/josm


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

small fixes in iodb plugin

Location:
applications/editors/josm/plugins/imagery_offset_db
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/build.xml

    r27986 r29390  
    9999            <manifest>
    100100                <attribute name="Author" value="Ilya Zverev"/>
     101                <attribute name="ru_Author" value="Илья Зверев"/>
    101102                <attribute name="Plugin-Class" value="iodb.ImageryOffsetPlugin"/>
    102103                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     
    104105                <attribute name="ru_Plugin-Description" value="База данных смещений подложек: загружайте и делитесь смещениями одной кнопкой."/>
    105106                <attribute name="Plugin-Icon" value="images/iodb.png"/>
    106                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImageryOffsetDB"/>
     107                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Imagery_Offset_Database"/>
     108                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:Imagery_Offset_Database"/>
    107109                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    108110                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
  • 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.