Kaydet (Commit) 79a6e40e authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith

fdo#48065 clamp mnFillOpacity to 1

Change-Id: I I007724e0ea4cc54a72f9bd9de9d83f887615568e
üst 7c114716
...@@ -970,8 +970,11 @@ struct AnnotatingVisitor ...@@ -970,8 +970,11 @@ struct AnnotatingVisitor
case XML_FILL_OPACITY: case XML_FILL_OPACITY:
if( aValueUtf8 == "inherit" ) if( aValueUtf8 == "inherit" )
maCurrState.mnFillOpacity = maParentStates.back().mnFillOpacity; maCurrState.mnFillOpacity = maParentStates.back().mnFillOpacity;
else else {
maCurrState.mnFillOpacity = aValueUtf8.toDouble(); maCurrState.mnFillOpacity = aValueUtf8.toDouble();
if( maCurrState.mnFillOpacity > 1 )
maCurrState.mnFillOpacity = 1;
}
break; break;
case XML_STROKE_WIDTH: case XML_STROKE_WIDTH:
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment