Changeset 5026 in josm for trunk


Ignore:
Timestamp:
2012-02-26T16:16:18+01:00 (8 years ago)
Author:
Don-vip
Message:

Do not set "null" tooltips

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JosmAction.java

    r4982 r5026  
    123123
    124124    public void setTooltip(String tooltip) {
    125         putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc));
     125        if (tooltip != null) {
     126            putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tooltip, sc));
     127        }
    126128    }
    127129
Note: See TracChangeset for help on using the changeset viewer.