On 03/01/13 15:05, Felix Hartmann wrote:
Nope, the patch doesn't help here (at least for my style)....

Attached patch fixes it for me.

Its more of a work-around or problem avoidance than a fix. It does not
add roads that are not attached to anything else. Might be quite reasonable for roads, but from Gerd's post earlier this week, we can't be sure that only roads are being processed.

Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision 2429)
+++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java	(revision )
@@ -1471,6 +1471,8 @@
 			origWay = way;
 
 		int numNodes = nodeIndices.size();
+		if (numNodes == 0)
+			return;
 		road.setNumNodes(numNodes);
 
 		if(numNodes > 0) {
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to