Kaydet (Commit) baef4e11 authored tarafından Grzegorz Araminowicz's avatar Grzegorz Araminowicz

SmartArt: simplify text body empty condition

Change-Id: Ie1c14bdc4f4db6f8f919433d40ea2281736c38ed
Reviewed-on: https://gerrit.libreoffice.org/73097
Tested-by: Jenkins
Reviewed-by: 's avatarGrzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
üst 5e36b647
......@@ -1153,12 +1153,8 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
}
TextBodyPtr pTextBody = rShape->getTextBody();
if (!pTextBody ||
pTextBody->getParagraphs().empty() ||
pTextBody->getParagraphs().front()->getRuns().empty())
{
if (!pTextBody || pTextBody->isEmpty())
break;
}
// adjust text size to fit shape
if (fFontSize != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment