diff --git a/src/VlcTop.cpp b/src/VlcTop.cpp index 36b2208e26..79ac4ec33a 100644 --- a/src/VlcTop.cpp +++ b/src/VlcTop.cpp @@ -150,13 +150,14 @@ void VlcTop::writeInfo(const string& filename) { int point_num = 0; for (const auto& point : sc.points()) { os << "BRDA:" << sc.lineno() << ","; + os << point_num << ","; const string cmt = point->comment().substr(0, point->comment().find("=")); if (cmt.rfind("toggle_", 0) != 0) { - std::string typeStr = cmt.substr(0, cmt.find("_")) + "_" + std::to_string(point_num); - os << typeStr << "," << typeStr; + std::string typeStr = cmt.substr(0, cmt.find("_")); + os << typeStr << "_" << point_num; } else { - os << cmt << "," << cmt; + os << cmt; } os << ","; os << point->count() << "\n";