Ignore:
Timestamp:
31.07.2010 16:28:43 (22 months ago)
Author:
bastiK
Message:

applied #3617 (patch by reini122) - Would like to see waypoint descriptions in JOSM

File:
1 edited

Legend:

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

    r3237 r3396  
    2626 
    2727    public ButtonMarker(LatLon ll, String buttonImage, MarkerLayer parentLayer, double time, double offset) { 
    28         super(ll, null, buttonImage, parentLayer, time, offset); 
     28        super(ll, "", buttonImage, parentLayer, time, offset); 
    2929        buttonRectangle = new Rectangle(0, 0, symbol.getIconWidth(), symbol.getIconHeight()); 
    3030    } 
     
    6262        r.grow((inset.top+inset.bottom)/2, (inset.left+inset.right)/2); 
    6363        b.paintBorder(mv, g, r.x, r.y, r.width, r.height); 
    64         if ((text != null) && showTextOrIcon && Main.pref.getBoolean("marker.buttonlabels", true)) { 
    65             g.drawString(text, screen.x+4, screen.y+2); 
     64 
     65        String labelText = getText(); 
     66        if ((labelText != null) && showTextOrIcon && Main.pref.getBoolean("marker.buttonlabels", true)) { 
     67            g.drawString(labelText, screen.x+4, screen.y+2); 
    6668        } 
    6769    } 
Note: See TracChangeset for help on using the changeset viewer.