When using Merkaartor I remarked a segfault when trying to split a road with
more than one node selected.
Since I anyway wanted to have a closer look into the Merkaartor source I tried
to find the error and propose this patch as a solution.
If there are any problems with the format give me advice.
Gunter
Index: /home/ggrau/projects/eclipse-merkaator2/Merkaartor/Map/RoadManipulations.cpp
===================================================================
--- /home/ggrau/projects/eclipse-merkaator2/Merkaartor/Map/RoadManipulations.cpp (revision 8442)
+++ /home/ggrau/projects/eclipse-merkaator2/Merkaartor/Map/RoadManipulations.cpp (working copy)
@@ -118,6 +118,7 @@
{
Road* NextPart = new Road;
copyTags(NextPart,FirstPart);
+ NextPart->setLayer(FirstPart->layer());
NextPart->add(FirstPart->get(i));
while ( (i+1) < FirstPart->size() )
{
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/merkaartor