> Standby...
Attached, completely untested, probably destroy the universe...
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
index abc8941..d314fd4 100644
--- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
+++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
@@ -276,20 +276,21 @@ public class StyledConverter implements OsmConverter {
preConvertRules(way);
do {
- foundType = wayRules.resolveType(way, foundType);
+ Way dupWay = way.duplicate();
+ foundType = wayRules.resolveType(dupWay, foundType);
if (foundType == null)
return;
- postConvertRules(way, foundType);
+ postConvertRules(dupWay, foundType);
if (foundType.getFeatureKind() == GType.POLYLINE) {
if(foundType.isRoad())
- addRoad(way, foundType);
+ addRoad(dupWay, foundType);
else
- addLine(way, foundType);
+ addLine(dupWay, foundType);
}
else
- addShape(way, foundType);
+ addShape(dupWay, foundType);
} while (!foundType.isFinal());
}
}
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev