diff --git a/source/parser/parser_expressions.cpp b/source/parser/parser_expressions.cpp index ef1c70ba9..d01944de0 100644 --- a/source/parser/parser_expressions.cpp +++ b/source/parser/parser_expressions.cpp @@ -31,16 +31,18 @@ /// /// @endparblock /// +//------------------------------------------------------------------------------ +// SPDX-License-Identifier: AGPL-3.0-or-later //****************************************************************************** // Unit header file must be the first file included within POV-Ray *.cpp files (pulls in config) #include "parser/parser.h" -// C++ variants of C standard header files +// C++ variants of standard C header files #include #include -// C++ standard header files +// Standard C++ header files #include // Boost header files @@ -3726,7 +3728,7 @@ GenericSpline *Parser::Parse_Spline() if (!New) { if (Old) - New = new LinearSpline(*Old); + New = Old->Clone(); else New = new LinearSpline(); }