]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix one more regression in ModelHighAPI_Dumper related to the number of digits writte...
authorazv <azv@opencascade.com>
Wed, 13 Mar 2019 13:32:24 +0000 (16:32 +0300)
committerazv <azv@opencascade.com>
Wed, 13 Mar 2019 13:32:24 +0000 (16:32 +0300)
src/ModelHighAPI/ModelHighAPI_Dumper.cpp

index 3a2e57d39f41c5250a57c5db1076b02a52085b53..2bf026285374353fb6ff8f1db825b5ab710f2415 100644 (file)
 #include <fstream>
 
 // ===========    Implementation of storage of dumped data    ===========
+static const int THE_DUMP_PRECISION = 16;
+
 class ModelHighAPI_Dumper::DumpStorageBuffer : public ModelHighAPI_Dumper::DumpStorage
 {
-  static const int THE_DUMP_PRECISION = 16;
-
 public:
   void addStorage(const ModelHighAPI_Dumper::DumpStoragePtr& theStorage)
   { myStorageArray.push_back(theStorage); }
@@ -418,7 +418,8 @@ void ModelHighAPI_Dumper::DumpStorageGeom::write(const AttributeSelectionPtr& th
       anIndex = anOutput.str();
     }
 
-    myDumpBuffer << anIndex << "\", ("
+    myDumpBuffer << std::setprecision(THE_DUMP_PRECISION)
+                 << anIndex << "\", ("
                  << aMiddlePoint->x() << ", "
                  << aMiddlePoint->y() << ", "
                  << aMiddlePoint->z() << ")";