diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2012-05-08 09:11:12 +0200 |
---|---|---|
committer | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2012-05-08 10:25:52 +0200 |
commit | 79a6e40e6f19a896dbc25640deb3d4507eddad95 (patch) | |
tree | a7821565cd93550af5a1d4a06534819ee69c9836 /filter | |
parent | fdo#47447 parse rgb(%,%,%) correctly (diff) | |
download | core-79a6e40e6f19a896dbc25640deb3d4507eddad95.tar.gz core-79a6e40e6f19a896dbc25640deb3d4507eddad95.zip |
fdo#48065 clamp mnFillOpacity to 1
Change-Id: I I007724e0ea4cc54a72f9bd9de9d83f887615568e
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgreader.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index f96e94212c1a..5386f3c6bd7e 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -970,8 +970,11 @@ struct AnnotatingVisitor case XML_FILL_OPACITY: if( aValueUtf8 == "inherit" ) maCurrState.mnFillOpacity = maParentStates.back().mnFillOpacity; - else + else { maCurrState.mnFillOpacity = aValueUtf8.toDouble(); + if( maCurrState.mnFillOpacity > 1 ) + maCurrState.mnFillOpacity = 1; + } break; case XML_STROKE_WIDTH: { |