]> git.mxchange.org Git - flightgear.git/commitdiff
Change from Norman Vine to avoid breaking G++ 2.95.
authordavid <david>
Fri, 11 Jan 2002 17:55:26 +0000 (17:55 +0000)
committerdavid <david>
Fri, 11 Jan 2002 17:55:26 +0000 (17:55 +0000)
src/FDM/JSBSim/FGTable.cpp

index 48c4877b17c19cb7e7a817bf872abc18e4ab203b..d9256decbc53a9cdf3e79bd2c525bef3d456a6b5 100644 (file)
@@ -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
 }
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%