Ticket #13102: patch-test-reset-main-panel-listener.patch
File patch-test-reset-main-panel-listener.patch, 602 bytes (added by , 8 years ago) |
---|
-
test/unit/org/openstreetmap/josm/JOSMFixture.java
diff --git a/test/unit/org/openstreetmap/josm/JOSMFixture.java b/test/unit/org/openstreetmap/josm/JOSMFixture.java index b8f3d28..5e31aa7 100644
a b public class JOSMFixture { 141 141 } 142 142 if (Main.main == null) { 143 143 new MainApplication().initialize(); 144 } else { 145 Main.mainPanel.reAddListeners(); 144 146 } 145 147 // Add a test layer to the layer manager to get the MapFrame 146 148 Main.getLayerManager().addLayer(new TestLayer());