diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-10-23 18:36:12 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-10-23 18:36:12 +0000 |
| commit | 9b277f68c36e5f1b8ffd91de0237204e47593f4e (patch) | |
| tree | 6eb55edf6efe3de27eca7c3e430f7e5b83dc4856 /src/display/drawing-item.cpp | |
| parent | Try to fix tests (diff) | |
| download | inkscape-9b277f68c36e5f1b8ffd91de0237204e47593f4e.tar.gz inkscape-9b277f68c36e5f1b8ffd91de0237204e47593f4e.zip | |
Revert "Try to fix tests"
This reverts commit 9d7575e11d86c2a1544690ea7f680c7d27d7d22d
Diffstat (limited to 'src/display/drawing-item.cpp')
| -rw-r--r-- | src/display/drawing-item.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp index ae7dfe40e..eba5fb6e2 100644 --- a/src/display/drawing-item.cpp +++ b/src/display/drawing-item.cpp @@ -799,11 +799,7 @@ DrawingItem::render(DrawingContext &dc, Geom::IntRect const &area, unsigned flag unsigned render_result = RENDER_OK; // 1. Render clipping path with alpha = opacity. - if (parent()) { - ict.setSource(0,0,0,_opacity); - } else { - ict.setSource(255, 255, 255, 1); - } + ict.setSource(0,0,0,_opacity); // 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. |
