Mercurial > hg > svcore
diff transform/FileFeatureWriter.cpp @ 514:6acdddf6f99e
* fixes to improve the utility of the CSV feature writer
author | Chris Cannam |
---|---|
date | Wed, 10 Dec 2008 13:21:10 +0000 |
parents | e7a39c45a7a4 |
children | 1aefb666ecfc |
line wrap: on
line diff
--- a/transform/FileFeatureWriter.cpp Wed Dec 10 12:39:32 2008 +0000 +++ b/transform/FileFeatureWriter.cpp Wed Dec 10 13:21:10 2008 +0000 @@ -184,11 +184,13 @@ QString filename; if (m_manyFiles && transformId != "") { - filename = QString("%1-%2.%3").arg(basename).arg(transformId).arg(m_extension); + filename = QString("%1_%2.%3").arg(basename).arg(transformId).arg(m_extension); } else { filename = QString("%1.%2").arg(basename).arg(m_extension); } + filename.replace(':', '_'); // ':' not permitted in Windows + filename = QDir(dirname).filePath(filename); if (QFileInfo(filename).exists() && !(m_force || m_append)) {