diff options
-rw-r--r-- | src/base/cprintf.cc | 3 | ||||
-rw-r--r-- | src/base/cprintf.hh | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/base/cprintf.cc b/src/base/cprintf.cc index caf1bb847..b764f60e9 100644 --- a/src/base/cprintf.cc +++ b/src/base/cprintf.cc @@ -47,6 +47,7 @@ Print::Print(std::ostream &stream, const std::string &format) saved_flags = stream.flags(); saved_fill = stream.fill(); saved_precision = stream.precision(); + saved_width = stream.width(); } Print::Print(std::ostream &stream, const char *format) @@ -55,6 +56,7 @@ Print::Print(std::ostream &stream, const char *format) saved_flags = stream.flags(); saved_fill = stream.fill(); saved_precision = stream.precision(); + saved_width = stream.width(); } Print::~Print() @@ -310,6 +312,7 @@ Print::end_args() stream.flags(saved_flags); stream.fill(saved_fill); stream.precision(saved_precision); + stream.width(saved_width); } } // namespace cp diff --git a/src/base/cprintf.hh b/src/base/cprintf.hh index 14b663c9c..9141769fb 100644 --- a/src/base/cprintf.hh +++ b/src/base/cprintf.hh @@ -54,6 +54,7 @@ struct Print std::ios::fmtflags saved_flags; char saved_fill; int saved_precision; + int saved_width; Format fmt; void process(); |