diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-01 14:42:25 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-09-19 13:21:01 +0200 |
commit | 687fdb9407edb5813bc8e378911b85f4fea4fe3d (patch) | |
tree | 546d1444afb5d555b5332197e046bf7da1f725d0 /vcl | |
parent | 947684e72737379dbd3deef15c94ab94a440a385 (diff) |
Resolves: tdf#123175 don't use NWF to draw buttons with an overridden bg
Change-Id: I434f476f62c5c754d96eeb0cb9ad7c0b8d38ccec
Reviewed-on: https://gerrit.libreoffice.org/70069
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 1ecff165a9e1..03089aca6742 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -1042,7 +1042,8 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext) if (!bRollOver && !HasFocus()) bDrawMenuSep = false; } - bNativeOK = rRenderContext.IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Entire); + // tdf#123175 if there is a custom control bg set, draw the button without outsourcing to the NWF + bNativeOK = !IsControlBackground() && rRenderContext.IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Entire); if (bNativeOK) { PushButtonValue aControlValue; |