projects
/
camsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7bb992
)
Fix CSV export of floating point data
author
Martin Lambers
<marlam@marlam.de>
Wed, 20 Mar 2019 09:46:55 +0000
(10:46 +0100)
committer
Martin Lambers
<marlam@marlam.de>
Wed, 20 Mar 2019 09:46:55 +0000
(10:46 +0100)
libcamsim/exporter.cpp
patch
|
blob
|
history
diff --git
a/libcamsim/exporter.cpp
b/libcamsim/exporter.cpp
index
3390d17
..
ed70a18
100644
(file)
--- a/
libcamsim/exporter.cpp
+++ b/
libcamsim/exporter.cpp
@@
-413,7
+413,7
@@
bool Exporter::writeCSV(const QString fileName, const QList<TexData> dataList, c
element.append(QString::number(*(static_cast<const unsigned int*>(p))));
break;
case GL_FLOAT:
- element.append(QString::number(*(static_cast<const
unsigned in
t*>(p)), 'g', 9));
+ element.append(QString::number(*(static_cast<const
floa
t*>(p)), 'g', 9));
break;
}
if (x != data.width() - 1)