Changeset 19247 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r19180 r19247 1290 1290 } else if (p instanceof IRelation<?>) { 1291 1291 for (IPrimitive member : ((IRelation<?>) p).getMemberPrimitivesList()) { 1292 resetTiles(member); 1292 if (member instanceof IRelation) { 1293 resetBounds(member.getBBox()); // Avoid recursive relation issues 1294 break; 1295 } else { 1296 resetTiles(member); 1297 } 1293 1298 } 1294 1299 } else { -
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/paint/StyledTiledMapRendererTest.java
r19221 r19247 20 20 import org.apache.commons.jcs3.access.CacheAccess; 21 21 import org.awaitility.Awaitility; 22 import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; 22 23 import org.junit.jupiter.params.ParameterizedTest; 23 24 import org.junit.jupiter.params.provider.Arguments; … … 38 39 * Test class for {@link StyledTiledMapRenderer} 39 40 */ 41 @DisabledIfEnvironmentVariable(disabledReason = "Needs more work; leave enabled locally but disable on CI", named = "CI", matches = "true") 40 42 @Main 41 43 @Projection -
trunk/test/unit/org/openstreetmap/josm/gui/layer/OsmDataLayerTest.java
r18870 r19247 29 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 30 import org.openstreetmap.josm.data.osm.Relation; 31 import org.openstreetmap.josm.data.osm.RelationMember; 31 32 import org.openstreetmap.josm.data.osm.Way; 32 33 import org.openstreetmap.josm.gui.MainApplication; … … 335 336 assertTrue(Logging.getLastErrorAndWarnings().stream().noneMatch(s -> s.contains("UnsupportedFlavorException"))); 336 337 } 338 339 /** 340 * Non-regression test for #23950 341 */ 342 @Test 343 void testTicket23950() { 344 final Relation first = TestUtils.newRelation("", new RelationMember("", TestUtils.newNode(""))); 345 final DataSet ds = new DataSet(); 346 // This is needed to cause the condition 347 MainApplication.getLayerManager().addLayer(new OsmDataLayer(ds, "StyledTiledMapRendererTest#testRecursiveRelation", null)); 348 ds.addPrimitiveRecursive(first); 349 first.addMember(new RelationMember("", first)); 350 ds.setSelected(first); 351 } 352 337 353 }
Note:
See TracChangeset
for help on using the changeset viewer.