From 9c7f25e2b2060d1f17048876ab6536cf75484c8b Mon Sep 17 00:00:00 2001 From: Helmut Burkhardt Date: Tue, 18 Dec 2018 14:18:34 +0100 Subject: [PATCH] fix issue #710 --- src/mad_mkthin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mad_mkthin.cpp b/src/mad_mkthin.cpp index cb6a88c96..729874ad8 100644 --- a/src/mad_mkthin.cpp +++ b/src/mad_mkthin.cpp @@ -936,7 +936,7 @@ static void add_half_angle_to(const element* rbend_el,element* to_el,const char* if(to_param) // modify the existing parameter in to_el { if(verbose_fl()) std::cout << __FILE__<< " " << __FUNCTION__ << " line " << std::setw(4) << __LINE__ << " original to_param " << my_dump_command_parameter(to_param) << '\n'; - to_param->expr = compound_expr(to_param->expr,0,"+",half_angle_expr,0); + to_param->expr = compound_expr( my_get_param_expression(to_param) ,0,"+",half_angle_expr,0); if(verbose_fl()) std::cout << __FILE__<< " " << __FUNCTION__ << " line " << std::setw(4) << __LINE__ << " now to_param " << my_dump_command_parameter(to_param) << '\n'; } else // param not yet in to_el, start from parameter definition