From bb0f99d6298fccb8cf1421fa0c7463c647f543a7 Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Fri, 22 Jul 2011 23:27:37 +0200 Subject: [PATCH] Fixed a bug in the code for subsitutions in indexed expressions. subs_options::no_index_renaming was ignored. Thanks to Gerhard Hejc for reporting and suggesting a fix. --- ginac/expairseq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/expairseq.cpp b/ginac/expairseq.cpp index ab14b555..7c6e5223 100644 --- a/ginac/expairseq.cpp +++ b/ginac/expairseq.cpp @@ -453,7 +453,7 @@ ex expairseq::subs(const exmap & m, unsigned options) const { std::auto_ptr vp = subschildren(m, options); if (vp.get()) - return ex_to(thisexpairseq(vp, overall_coeff, true)); + return ex_to(thisexpairseq(vp, overall_coeff, (options & subs_options::no_index_renaming) == 0)); else if ((options & subs_options::algebraic) && is_exactly_a(*this)) return static_cast(this)->algebraic_subs_mul(m, options); else -- 2.44.0