From 93a1f9d1a615221df1cd0b660b4bb2211cc5c2a9 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Mon, 21 Jul 2025 22:35:48 +0300 Subject: [PATCH] [traffxml] Fix bug when storing point distance attribute Signed-off-by: mvglasow --- traffxml/traff_model_xml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffxml/traff_model_xml.cpp b/traffxml/traff_model_xml.cpp index 93fcd0a0b..be5b146af 100644 --- a/traffxml/traff_model_xml.cpp +++ b/traffxml/traff_model_xml.cpp @@ -551,7 +551,7 @@ void PointToXml(Point const & point, std::string name, pugi::xml_node & parentNo { auto node = parentNode.append_child(name); 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) node.append_attribute("junction_name").set_value(point.m_junctionName.value()); if (point.m_junctionRef)