From 4401616d44a17cb0a2a3ebc78d5ba8c1f510c019 Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Thu, 26 Feb 2026 18:28:22 +0300 Subject: [PATCH] ... --- include/mcc/mcc_generic_movecontrols.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mcc/mcc_generic_movecontrols.h b/include/mcc/mcc_generic_movecontrols.h index f055e7c..4e86c8b 100644 --- a/include/mcc/mcc_generic_movecontrols.h +++ b/include/mcc/mcc_generic_movecontrols.h @@ -185,7 +185,7 @@ struct MccMovementPathFile { auto tp = std::chrono::duration_cast(tdata.mountPos.epoch().UTC().time_since_epoch()); - const std::string_view d_fmt = "{:f14.8}"; + const std::string_view d_fmt = "{:14.8f}"; const auto v = std::views::repeat(d_fmt, 7) | std::views::join_with(' '); std::string fmt = "{} " + std::string(v.begin(), v.end()) + " {}"; @@ -205,7 +205,7 @@ struct MccMovementPathFile { _buffer.clear(); } - bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios_base::trunc) + bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios::out | std::ios::trunc) { if (filename.empty()) { return true;