From bc13e2f2138effc9b097e9ac0b0c68a2fb0c8096 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 11 Jan 2002 17:55:26 +0000 Subject: [PATCH] Change from Norman Vine to avoid breaking G++ 2.95. --- src/FDM/JSBSim/FGTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/JSBSim/FGTable.cpp b/src/FDM/JSBSim/FGTable.cpp index 48c4877b1..d9256decb 100644 --- a/src/FDM/JSBSim/FGTable.cpp +++ b/src/FDM/JSBSim/FGTable.cpp @@ -211,7 +211,7 @@ void FGTable::Print(void) if (Type == tt1D) startRow = 1; else startRow = 0; - cout.setf(ios::fixed); // set up output stream + ios::fmtflags flags = cout.setf(ios::fixed); // set up output stream cout.precision(4); for (int r=startRow; r<=nRows; r++) { @@ -225,7 +225,7 @@ void FGTable::Print(void) } cout << endl; } - cout.setf((ios_base::fmtflags)0, ios::floatfield); // reset + cout.setf(flags); // reset } //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%