This commit is contained in:
Green
2025-02-03 15:45:09 +03:00
parent 79a4434583
commit d75e7342cf

View File

@ -949,8 +949,6 @@ void CConverter2OOXML::WriteGeometryShape(const CCtrlGeneralShape* pGeneralShape
if (nullptr == pGeneralShape)
return;
OpenParagraph(shParaShapeID, oBuilder, oState);
EShapeObjectType eShapeType = GetShapeObjectType(pGeneralShape->GetID());
if (EShapeObjectType::Unknown == eShapeType)
@ -960,6 +958,8 @@ void CConverter2OOXML::WriteGeometryShape(const CCtrlGeneralShape* pGeneralShape
WriteCaption((const CCtrlCommon*)pGeneralShape, oBuilder, oState);
OpenParagraph(shParaShapeID, oBuilder, oState);
const int nWidth = Transform::HWPUINT2OOXML(pGeneralShape->GetWidth());
const int nHeight = Transform::HWPUINT2OOXML(pGeneralShape->GetHeight());