diff options
author | Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com> | 2019-05-28 14:41:06 +0200 |
---|---|---|
committer | Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com> | 2019-05-28 19:05:15 +0200 |
commit | baef4e11dd9d8c019dcf8667f88882db7d7c86fd (patch) | |
tree | 56744c09be715b996d752f04e65c57322725c75d /oox | |
parent | 5e36b647169c22f5fbe8012a81499314588d3727 (diff) |
SmartArt: simplify text body empty condition
Change-Id: Ie1c14bdc4f4db6f8f919433d40ea2281736c38ed
Reviewed-on: https://gerrit.libreoffice.org/73097
Tested-by: Jenkins
Reviewed-by: Grzegorz Araminowicz <grzegorz.araminowicz@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/diagram/diagramlayoutatoms.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx index a9b2f0c1c5a1..675806767191 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx @@ -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) |