summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/misccontexts.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/misccontexts.cxx')
-rw-r--r--oox/source/drawingml/misccontexts.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/misccontexts.cxx b/oox/source/drawingml/misccontexts.cxx
index 417b4f35e8a6..2eef9ab6133a 100644
--- a/oox/source/drawingml/misccontexts.cxx
+++ b/oox/source/drawingml/misccontexts.cxx
@@ -57,7 +57,7 @@ GradientFillContext::GradientFillContext(ContextHandler2Helper const & rParent,
auto oRotateWithShape = rAttribs.getBool(XML_rotWithShape);
mrGradientProps.moShadeFlip = rAttribs.getToken( XML_flip );
mrGradientProps.moRotateWithShape = oRotateWithShape;
- if (mpGradientFill && oRotateWithShape)
+ if (mpGradientFill && oRotateWithShape.has_value())
mpGradientFill->mbRotateWithShape = *oRotateWithShape;
}