mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/602
This commit is contained in:
@ -249,7 +249,9 @@ int CellFormatController::ProcessCellType(OOX::Spreadsheet::CCell *pCell, const
|
|||||||
}
|
}
|
||||||
else if(!hasDate && hasTime)
|
else if(!hasDate && hasTime)
|
||||||
{
|
{
|
||||||
pCell_->m_oValue->m_sText = std::to_wstring(digitalDate);
|
wchar_t buf[32];
|
||||||
|
swprintf(buf, sizeof(buf)/sizeof(buf[0]), L"%.17g", digitalDate);
|
||||||
|
pCell_->m_oValue->m_sText = std::wstring(buf);
|
||||||
std::map<std::wstring, unsigned int>::iterator pFind = mapDataNumber_.find(DefaultTimeFormat);
|
std::map<std::wstring, unsigned int>::iterator pFind = mapDataNumber_.find(DefaultTimeFormat);
|
||||||
pCell_->m_oStyle = pFind->second;
|
pCell_->m_oStyle = pFind->second;
|
||||||
if(pCell->m_oRow.IsInit() && pCell->m_oRow.get() <= maxCustomWidthRow)
|
if(pCell->m_oRow.IsInit() && pCell->m_oRow.get() <= maxCustomWidthRow)
|
||||||
@ -259,7 +261,9 @@ int CellFormatController::ProcessCellType(OOX::Spreadsheet::CCell *pCell, const
|
|||||||
}
|
}
|
||||||
else if(hasDate && hasTime)
|
else if(hasDate && hasTime)
|
||||||
{
|
{
|
||||||
pCell_->m_oValue->m_sText = std::to_wstring(digitalDate);
|
wchar_t buf[32];
|
||||||
|
swprintf(buf, sizeof(buf)/sizeof(buf[0]), L"%.17g", digitalDate);
|
||||||
|
pCell_->m_oValue->m_sText = std::wstring(buf);
|
||||||
std::map<std::wstring, unsigned int>::iterator pFind = mapDataNumber_.find(DefaultDateTimeFormat);
|
std::map<std::wstring, unsigned int>::iterator pFind = mapDataNumber_.find(DefaultDateTimeFormat);
|
||||||
pCell_->m_oStyle = pFind->second;
|
pCell_->m_oStyle = pFind->second;
|
||||||
if(pCell->m_oRow.IsInit() && pCell->m_oRow.get() <= maxCustomWidthRow)
|
if(pCell->m_oRow.IsInit() && pCell->m_oRow.get() <= maxCustomWidthRow)
|
||||||
|
|||||||
Reference in New Issue
Block a user