summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-23 11:13:23 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-23 11:13:23 +0000
commit9d7575e11d86c2a1544690ea7f680c7d27d7d22d (patch)
treecc3330751d2c5b7a20201eecf967b65d4db00631
parentFix isolation issues (diff)
downloadinkscape-9d7575e11d86c2a1544690ea7f680c7d27d7d22d.tar.gz
inkscape-9d7575e11d86c2a1544690ea7f680c7d27d7d22d.zip
Try to fix tests
-rw-r--r--src/display/drawing-item.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp
index eba5fb6e2..ae7dfe40e 100644
--- a/src/display/drawing-item.cpp
+++ b/src/display/drawing-item.cpp
@@ -799,7 +799,11 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag
unsigned render_result = RENDER_OK;
// 1. Render clipping path with alpha = opacity.
- ict.setSource(0,0,0,_opacity);
+ if (parent()) {
+ ict.setSource(0,0,0,_opacity);
+ } else {
+ ict.setSource(255, 255, 255, 1);
+ }
// Since clip can be combined with opacity, the result could be incorrect
// for overlapping clip children. To fix this we use the SOURCE operator
// instead of the default OVER.