- changed setw(7 to 8)
[alexxy/gromacs-colorvec.git] / src / colorvec.cpp
index 9efce99c5c67506f82ac9008c1d38e52bbf23e86..4cae924da3cf103f78d7627dc917b43652dc4335 100644 (file)
@@ -291,7 +291,7 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve
         } else {
             file << std::setw(4) << "no";
         }
-        file << std::setw(7) << std::setprecision(2) << colorFormation[i].a12 << std::setw(7) << colorFormation[i].b12 << std::setw(7) << colorFormation[i].n12;
+        file << std::setw(8) << std::setprecision(2) << colorFormation[i].a12 << std::setw(8) << colorFormation[i].b12 << std::setw(8) << colorFormation[i].n12;
         temp = colorFormation[i].betaAngles.size() / 6;
         if (temp == 0) {
             file << std::setw(4) << 0;
@@ -305,10 +305,10 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve
             }
             file << std::setw(4) << temp;
             for (size_t j = 0; j < betaTemp.size(); ++j) {
-                file << std::setw(7) << std::setprecision(2) << betaTemp[j];
+                file << std::setw(8) << std::setprecision(2) << betaTemp[j];
             }
             for (size_t j = 0; j < colorFormation[i].betaAngles.size(); ++j) {
-                file << std::setw(7) << std::setprecision(2) << colorFormation[i].betaAngles[j];
+                file << std::setw(8) << std::setprecision(2) << colorFormation[i].betaAngles[j];
             }
         }
         file << std::endl;