Changeset 9438 in josm for trunk


Ignore:
Timestamp:
2016-01-14T09:30:42+01:00 (9 years ago)
Author:
Don-vip
Message:

add unit test

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    r9266 r9438  
    99import java.awt.Dimension;
    1010import java.awt.FlowLayout;
     11import java.awt.GraphicsEnvironment;
    1112import java.awt.GridBagConstraints;
    1213import java.awt.GridBagLayout;
     
    770771            for (OsmPrimitive p : primitivesToAdd) {
    771772                if (p instanceof Relation && orig.equals(p)) {
    772                     warnOfCircularReferences(p);
     773                    if (!GraphicsEnvironment.isHeadless()) {
     774                        warnOfCircularReferences(p);
     775                    }
    773776                    continue;
    774777                } else if (MemberTableModel.hasMembersReferringTo(relation.getMembers(), Collections.singleton(p))
Note: See TracChangeset for help on using the changeset viewer.