Commit 973274b6 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

merge from branches\Docx2DoctConverter Revision: 59967

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60002 954022d7-b5bf-4e40-9824-e11837661b57
parent 503f6b01
......@@ -416,9 +416,19 @@ namespace NSBinPptxRW
}
void CBinaryFileWriter::WriteDouble(const double& dValue)
{
//todo dValue , long
long _val = (long)(dValue * 100000);
WriteLONG(_val);
double _val = dValue * 100000;
if (_val > 0x7fffffff)
{
WriteLONG(0x7fffffff);
}
else if ( _val < -0x7fffffff)
{
WriteLONG(-0x7fffffff);
}
else
{
WriteLONG((long)_val);
}
}
void CBinaryFileWriter::WriteDoubleReal(const double& dValue)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment