Add PptxTxtConverter to x2t

This commit is contained in:
Alexey Nagaev
2025-09-19 15:31:08 +03:00
parent 9322ad72d2
commit f2044aef8d
3 changed files with 13 additions and 3 deletions

View File

@ -116,8 +116,9 @@ std::wstring CPptxTxtConverter::CPptxTxtConverterImpl::GetTextFromShape(const PP
std::wstring text;
text.reserve(knStringReserve);
for (const auto& paragraph : oShape.txBody->Paragrs)
text += paragraph.GetText(true);
if (oShape.txBody.IsInit())
for (const auto& paragraph : oShape.txBody->Paragrs)
text += paragraph.GetText(true);
return text; // RVO
}