diff --git a/Utilities/otbossimplugins/ossim/ossimTileMapModel.cpp b/Utilities/otbossimplugins/ossim/ossimTileMapModel.cpp
index 844089e7563cd238673a912874f4ede635b700d3..6555d17d45dcc33e497a77cf65d814fa1a2a3695 100644
--- a/Utilities/otbossimplugins/ossim/ossimTileMapModel.cpp
+++ b/Utilities/otbossimplugins/ossim/ossimTileMapModel.cpp
@@ -172,19 +172,23 @@ namespace ossimplugins
 //*****************************************************************************
    std::ostream& ossimTileMapModel::print(std::ostream& os) const
    {
-      os << "\nDump of ossimTileMapModel object at "
-         << hex << this << ":\n"
-         << "\nTileMapModel -- Dump of all data members: "
-         << "\n        theImageID: " << theImageID.chars()
-         << "\n        theImageSize: " << theImageSize
-         << "\n        theRefImgPt: " << theRefImgPt
-         << "\n        theRefGndPt: " << theRefGndPt
-         << "\n        theGSD.line: " << theGSD.line
-         << "\n        theGSD.samp: " << theGSD.samp
-         << "\n        qDepth: " << qDepth
-         << endl;
-
-      return ossimSensorModel::print(os);
+     std::ios::fmtflags f(os.flags());
+     
+     os << "\nDump of ossimTileMapModel object at "
+        << hex << this << ":\n"
+        << "\nTileMapModel -- Dump of all data members: "
+        << "\n        theImageID: " << theImageID.chars()
+        << "\n        theImageSize: " << theImageSize
+        << "\n        theRefImgPt: " << theRefImgPt
+        << "\n        theRefGndPt: " << theRefGndPt
+        << "\n        theGSD.line: " << theGSD.line
+        << "\n        theGSD.samp: " << theGSD.samp
+        << "\n        qDepth: " << qDepth
+        << endl;
+     
+     os.flags(f);
+     
+     return ossimSensorModel::print(os);
    }
 
 //*****************************************************************************