mirror of
https://github.com/leozide/leocad
synced 2025-01-13 08:01:38 +01:00
Remove commas from descriptions in csv files.
This commit is contained in:
parent
181985dc34
commit
337e5723b8
1 changed files with 4 additions and 1 deletions
|
@ -1463,7 +1463,10 @@ bool Project::ExportCSV(const QString& FileName)
|
||||||
|
|
||||||
for (const auto& ColorIt : PartIt.second)
|
for (const auto& ColorIt : PartIt.second)
|
||||||
{
|
{
|
||||||
sprintf(Line, "\"%s\",\"%s\",%d,%s,%d\n", Info->m_strDescription, gColorList[ColorIt.first].Name, ColorIt.second, Info->mFileName, gColorList[ColorIt.first].Code);
|
std::string Description = Info->m_strDescription;
|
||||||
|
Description.erase(std::remove(Description.begin(), Description.end(), ','), Description.end());
|
||||||
|
|
||||||
|
sprintf(Line, "\"%s\",\"%s\",%d,%s,%d\n", Description.c_str(), gColorList[ColorIt.first].Name, ColorIt.second, Info->mFileName, gColorList[ColorIt.first].Code);
|
||||||
CSVFile.WriteLine(Line);
|
CSVFile.WriteLine(Line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue