Ignore:
Timestamp:
2016-02-14T23:11:00+01:00 (10 years ago)
Author:
Don-vip
Message:

robustness/code refactoring for unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongPanel.java

    r8672 r9804  
    55
    66import java.awt.Dimension;
     7import java.awt.GraphicsEnvironment;
    78import java.awt.GridBagLayout;
    89
     
    185186        });
    186187
    187         int ret = HelpAwareOptionPane.showOptionDialog(Main.parent, this, title,
    188                 JOptionPane.QUESTION_MESSAGE, null, options, options[0], helpTopic);
     188        int ret = 0;
     189        if (!GraphicsEnvironment.isHeadless()) {
     190            ret = HelpAwareOptionPane.showOptionDialog(Main.parent, this, title,
     191                    JOptionPane.QUESTION_MESSAGE, null, options, options[0], helpTopic);
     192        }
    189193        if (0 == ret) {
    190194            rememberSettings();
Note: See TracChangeset for help on using the changeset viewer.