[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 21 14:56:13 UTC 2019
vcl/source/outdev/gradient.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 7ba891c85ae06c0806fe2349202da84b50ca6cbd
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jun 21 13:19:38 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 21 16:54:50 2019 +0200
Related: tdf#125670 avoid possible performance issues for the general case
but retain recording of gradient to metafile
Change-Id: I5efde15f1c192b15fe647362803442ac947b63de
Reviewed-on: https://gerrit.libreoffice.org/74505
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx
index 3e50a016cc46..eb240b0f735c 100644
--- a/vcl/source/outdev/gradient.cxx
+++ b/vcl/source/outdev/gradient.cxx
@@ -50,6 +50,12 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly,
{
assert(!is_double_buffered_window());
+ if (mbInitClipRegion)
+ InitClipRegion();
+
+ if (mbOutputClipped && !mpMetaFile)
+ return;
+
if ( rPolyPoly.Count() && rPolyPoly[ 0 ].GetSize() )
{
if ( mnDrawMode & ( DrawModeFlags::BlackGradient | DrawModeFlags::WhiteGradient | DrawModeFlags::SettingsGradient) )
More information about the Libreoffice-commits
mailing list