summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-03-20 07:51:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-03-24 18:17:40 +0100
commit20350a085110a1baa789e8ba2e3a1a5e57b299e6 (patch)
treef92794dda021f781a45a5729f56d62d7b4b48f89 /oox
parent63b573faf984875cda7a879e696ea75fae81df57 (diff)
Fix build with boost < 1.68
Follow-up fix for 73cac1031131021819a0fbd4d60554196aea230c "tdf130839: Corrects second level left margin in Smartart" Change-Id: Ie194062ba33cf505ad33fbfdc73c2f764b61d0aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90770 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagramlayoutatoms.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
index 1b6a821f3a0a..ff83dde63fa3 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
@@ -1224,13 +1224,13 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
aParagraph->getProperties().setLevel(nLevel);
if (nLevel >= nStartBulletsAtLevel)
{
- if (!aParagraph->getProperties().getParaLeftMargin().has_value())
+ if (aParagraph->getProperties().getParaLeftMargin().get_ptr() == nullptr)
{
sal_Int32 nLeftMargin = 285750 * (nLevel - nStartBulletsAtLevel + 1) / EMU_PER_HMM;
aParagraph->getProperties().getParaLeftMargin() = nLeftMargin;
}
- if (!aParagraph->getProperties().getFirstLineIndentation().has_value())
+ if (aParagraph->getProperties().getFirstLineIndentation().get_ptr() == nullptr)
aParagraph->getProperties().getFirstLineIndentation() = -285750 / EMU_PER_HMM;
// It is not possible to change the bullet style for text.