[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - oox/source
Rico Tzschichholz (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 24 17:18:11 UTC 2020
oox/source/drawingml/diagram/diagramlayoutatoms.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 20350a085110a1baa789e8ba2e3a1a5e57b299e6
Author: Rico Tzschichholz <ricotz at ubuntu.com>
AuthorDate: Fri Mar 20 07:51:53 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Mar 24 18:17:40 2020 +0100
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 at redhat.com>
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.
More information about the Libreoffice-commits
mailing list