mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 22:03:37 +00:00
[traffxml] Fix bug when storing point distance attribute
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -551,7 +551,7 @@ void PointToXml(Point const & point, std::string name, pugi::xml_node & parentNo
|
|||||||
{
|
{
|
||||||
auto node = parentNode.append_child(name);
|
auto node = parentNode.append_child(name);
|
||||||
if (point.m_distance)
|
if (point.m_distance)
|
||||||
node.append_attribute("distance").set_value(point.m_junctionName.value());
|
node.append_attribute("distance").set_value(point.m_distance.value());
|
||||||
if (point.m_junctionName)
|
if (point.m_junctionName)
|
||||||
node.append_attribute("junction_name").set_value(point.m_junctionName.value());
|
node.append_attribute("junction_name").set_value(point.m_junctionName.value());
|
||||||
if (point.m_junctionRef)
|
if (point.m_junctionRef)
|
||||||
|
|||||||
Reference in New Issue
Block a user