diff --git a/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp b/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp index 0fcd42c618..95f8b403a7 100644 --- a/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp +++ b/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp @@ -149,13 +149,15 @@ void RivExtrudedCurveIntersectionGeometryGenerator::calculateTransformedPolyline for ( size_t lineIdx = 0; lineIdx < m_polylines.size(); ++lineIdx ) { - auto flatPolyline = m_transformedPolyLines.emplace_back(); - const auto& polyline = m_polylines[lineIdx]; + std::vector flatPolyline; + const auto& polyline = m_polylines[lineIdx]; for ( size_t index = 0; index < polyline.size(); ++index ) { flatPolyline.push_back( transformPointByPolylineSegmentIndex( polyline[index], lineIdx, index ) ); } + + m_transformedPolyLines.emplace_back( flatPolyline ); } }