Kaydet (Commit) c8df6f7b authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d4202e3e
...@@ -1018,7 +1018,8 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext) ...@@ -1018,7 +1018,8 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext)
if (!bRollOver && !HasFocus()) if (!bRollOver && !HasFocus())
bDrawMenuSep = false; 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) if (bNativeOK)
{ {
PushButtonValue aControlValue; PushButtonValue aControlValue;
......
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