]> www.ginac.de Git - ginac.git/blobdiff - ginac/operators.cpp
Synced to HEAD
[ginac.git] / ginac / operators.cpp
index d588b98d995560a9f5c8850d7f5427fae685cdf1..f53e68a8a13e69e8a59228dbc8e1779428c86ed4 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's overloaded operators. */
 
 /*
- *  GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2004 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
@@ -334,7 +334,7 @@ static void set_print_options(std::ostream & s, unsigned options)
 {
        print_context *p = get_print_context(s);
        if (p == 0)
-               set_print_context(s, print_context(s, options));
+               set_print_context(s, print_dflt(s, options));
        else
                p->options = options;
 }
@@ -343,7 +343,7 @@ std::ostream & operator<<(std::ostream & os, const ex & e)
 {
        print_context *p = get_print_context(os);
        if (p == 0)
-               e.print(print_context(os));
+               e.print(print_dflt(os));
        else
                e.print(*p);
        return os;
@@ -356,7 +356,7 @@ std::istream & operator>>(std::istream & is, ex & e)
 
 std::ostream & dflt(std::ostream & os)
 {
-       set_print_context(os, print_context(os));
+       set_print_context(os, print_dflt(os));
        set_print_options(os, 0);
        return os;
 }