From 9f86a69017e43c8054ee28e022183f224c6a077b Mon Sep 17 00:00:00 2001 From: Jens Vollinga Date: Tue, 12 Dec 2006 21:58:51 +0000 Subject: [PATCH] Bug fix for tensor::replace_contr_index(). --- ginac/tensor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ginac/tensor.cpp b/ginac/tensor.cpp index c215237d..25935f42 100644 --- a/ginac/tensor.cpp +++ b/ginac/tensor.cpp @@ -395,6 +395,8 @@ bool tensor::replace_contr_index(exvector::iterator self, exvector::iterator oth again: if (self_idx->is_symbolic()) { for (size_t i=1; inops(); i++) { + if (! is_a(other->op(i))) + continue; const idx &other_idx = ex_to(other->op(i)); if (is_dummy_pair(*self_idx, other_idx)) { -- 2.44.0