Ignore:
Timestamp:
2012-03-08T22:01:06+01:00 (10 years ago)
Author:
simon04
Message:

fix #6561 - fix several overflowing dialog texts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r4918 r5059  
    474474
    475475    private static boolean confirmRelationDeletion(Collection<Relation> relations) {
    476         String relationString = "<ul>";
    477         for(Relation r:relations) {
    478             relationString += "<li>"+DefaultNameFormatter.getInstance().format(r) + "</li>";
    479         }
    480         relationString += "</ul>";
    481        
    482476        JPanel msg = new JPanel(new GridBagLayout());
    483477        msg.add(new JLabel("<html>" + trn(
     
    492486                + "<br/>"
    493487                + "Do you really want to delete?",
    494                 relations.size(), relations.size(), relationString) + "</html>"));
     488                relations.size(), relations.size(), DefaultNameFormatter.getInstance().formatAsHtmlUnorderedList(relations))
     489                + "</html>"));
    495490        boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog(
    496491                "delete_relations",
Note: See TracChangeset for help on using the changeset viewer.