]> www.ginac.de Git - ginac.git/blobdiff - ginac/expairseq.cpp
- added find() (like has(), but returns list of all occurrences)
[ginac.git] / ginac / expairseq.cpp
index 96da57c272ae403f8312536324a6c1731141d704..1530564b04d31ff93b7d0fd21ca238f96ae6533e 100644 (file)
@@ -579,7 +579,7 @@ ex expairseq::expand(unsigned options) const
        epvector *vp = expandchildren(options);
        if (vp == NULL) {
                // The terms have not changed, so it is safe to declare this expanded
-               return this->setflag(status_flags::expanded);
+               return (options == 0) ? setflag(status_flags::expanded) : *this;
        } else
                return thisexpairseq(vp, overall_coeff);
 }