diff options
Diffstat (limited to 'oox/source/vml/vmlshapecontext.cxx')
-rw-r--r-- | oox/source/vml/vmlshapecontext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx index 5ade9c17bd93..f1ba9e32340c 100644 --- a/oox/source/vml/vmlshapecontext.cxx +++ b/oox/source/vml/vmlshapecontext.cxx @@ -78,7 +78,7 @@ OptValue< double > lclDecodeOpacity( const AttributeList& rAttribs, sal_Int32 nT { if(aString.endsWith("f")) { - fRetval = std::max(0.0, std::min(1.0, aString.toDouble() / 65536.0)); + fRetval = std::clamp(aString.toDouble() / 65536.0, 0.0, 1.0); } else { |