This commit is contained in:
Dmitry Okunev
2025-06-20 17:10:17 +03:00
parent 3e9d3bed35
commit 809ed63ca0

View File

@ -64,7 +64,7 @@ namespace OdfCustomShape
CElement* pElement = SMCustomShapePars::ParseElement(pReader);
if(pElement != nullptr)
{
if(pElement->GetBaseType() == TypeElement::ArithmeticOperation && !arVec.empty())
if(pElement->GetBaseType() == TypeElement::ArithmeticOperation && !arVec.empty() && arVec.back()->GetBaseType() != TypeElement::comma)
{
CElementArithmeticOperations* pSign = static_cast<CElementArithmeticOperations*>(pElement);
pSign->SetFirstValue(arVec.back());