Kaydet (Commit) 5d710cf7 authored tarafından Michael Stahl's avatar Michael Stahl

VCL canvas: fix clipping of gradients (related: tdf#115142)

When using the presenter console, the secondary screen has
a small view of the current slide, which is called a "Pane" in sdext.

Clipping for this is done by sd::presenter::PresenterCanvas, which wraps
the full-screen VCL canvas and has a MergeViewState() to intersect
the clip region.

The VCL canvas has a bug in its gradientFill() implemenation where it
overrides the existing clip on the OutputDevice instead of intersecting
it.

This properly fixes the bug that was wrongly and badly attempted
to be fixed by commit 99e373cd.

Change-Id: Id02678c2f134fe7b190866d6a6fff5b2e5e3aaff
üst 0408a590
......@@ -602,7 +602,7 @@ namespace vclcanvas
const vcl::Region aPolyClipRegion( rPoly );
rOutDev.Push( PushFlags::CLIPREGION );
rOutDev.SetClipRegion( aPolyClipRegion );
rOutDev.IntersectClipRegion( aPolyClipRegion );
doGradientFill( rOutDev,
rValues,
......
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