summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 993521c39922..3366ce028557 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1455,14 +1455,12 @@ namespace svgio
}
case SVGTokenStrokeOpacity:
{
+
SvgNumber aNum;
if(readSingleNumber(aContent, aNum))
{
- if(aNum.isPositive())
- {
- setStrokeOpacity(aNum);
- }
+ setStrokeOpacity(SvgNumber(basegfx::clamp(aNum.getNumber(), 0.0, 1.0), aNum.getUnit(), aNum.isSet()));
}
break;
}