X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=sidebyside;f=ginac%2Fidx.cpp;h=c1412b9de73ff8bcfe5c43e7d679e7c4d3757935;hb=4ee761760b3db8649b8b616256cd7466fe2cd033;hp=3e17569a1a869f37bff5f3916288639b66781a05;hpb=fcbad847e1a51b95cf6efe4583a931e4c0d56e6e;p=ginac.git diff --git a/ginac/idx.cpp b/ginac/idx.cpp index 3e17569a..c1412b9d 100644 --- a/ginac/idx.cpp +++ b/ginac/idx.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's indices. */ /* - * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -234,8 +234,11 @@ void spinidx::do_print_tree(const print_tree & c, unsigned level) const bool idx::info(unsigned inf) const { - if (inf == info_flags::idx) - return true; + switch(inf) { + case info_flags::idx: + case info_flags::has_indices: + return true; + } return inherited::info(inf); }