mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fixed bugs
This commit is contained in:
@ -496,7 +496,7 @@ namespace NSCSS
|
||||
|
||||
bool CColor::SetValue(const std::wstring &wsValue, unsigned int unLevel, bool bHardMode)
|
||||
{
|
||||
if (((m_bImportant || unLevel < m_unLevel) && !bHardMode))
|
||||
if (((m_bImportant || unLevel < m_unLevel) && !bHardMode) || (wsValue.empty() && unLevel == m_unLevel))
|
||||
return false;
|
||||
|
||||
if (wsValue.empty())
|
||||
@ -700,7 +700,7 @@ namespace NSCSS
|
||||
|
||||
bool CMatrix::SetValue(const std::wstring &wsValue, unsigned int unLevel, bool bHardMode)
|
||||
{
|
||||
if (((m_bImportant || unLevel < m_unLevel) && !bHardMode))
|
||||
if (((m_bImportant || unLevel < m_unLevel) && !bHardMode) || (wsValue.empty() && unLevel == m_unLevel))
|
||||
return false;
|
||||
|
||||
std::wstring wsNewValue = wsValue;
|
||||
|
||||
Reference in New Issue
Block a user