fix saving pli autoclose value (#1848)

This commit is contained in:
shun-iwasawa 2018-03-07 15:22:30 +09:00 committed by Jeremy Bullock
parent e122a937ef
commit 0a3be42e04

View file

@ -2544,7 +2544,7 @@ bool ParsedPliImp::writePli(const TFilePath &filename) {
double absAutoClose = fabs(m_autocloseTolerance);
s = tsign(m_autocloseTolerance) + 1;
i = (UCHAR)((int)absAutoClose);
d = (UCHAR)((int)((absAutoClose - i) * 100));
d = (UCHAR)((int)round((absAutoClose - i) * 100));
*m_oChan << s;
*m_oChan << i;
*m_oChan << d;