Fixed bugs

This commit is contained in:
Kirill Poljakov
2023-07-10 21:11:41 +03:00
parent 8b3fdbe50a
commit 49cdde75b3
3 changed files with 5 additions and 10 deletions

View File

@ -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;