summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-08-30 17:00:46 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-08-30 17:50:14 +0200
commita40fbd031de042b0181dc5570164ae8ce0abb0f1 (patch)
treef95b431ee61c16c95ced0e5d9f926d8165413923 /vcl/source/control
parente607beeed1b391ee2a622494700d78d68dd2868f (diff)
tdf#127211 Revert "tdf#71087 sfx2: avoid flicker in the start center"
This reverts commit d5c7657c541c1f6d17bfe5e605594c235eecfcdb. By the time I created that, I forgot to test the case when there are no recent documents. I'm not exactly sure how to fix that, so just go back to the old behavior for now (trading a regression for a normal bug). Change-Id: I8abc251a3e6506ca17429ba106e2dd70fff31556 Reviewed-on: https://gerrit.libreoffice.org/78301 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index ad70daed0d15..ffad8810efac 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1080,13 +1080,7 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext)
aInRect, bDrawMenuSep, nButtonStyle);
if (HasFocus())
- {
ShowFocus(ImplGetFocusRect());
- if (SupportsDoubleBuffering())
- {
- rRenderContext.Invert(ImplGetFocusRect(), InvertFlags::TrackFrame);
- }
- }
}
if (!bNativeOK)
@@ -1113,10 +1107,6 @@ void PushButton::ImplDrawPushButton(vcl::RenderContext& rRenderContext)
if (HasFocus())
{
ShowFocus(ImplGetFocusRect());
- if (SupportsDoubleBuffering())
- {
- rRenderContext.Invert(ImplGetFocusRect(), InvertFlags::TrackFrame);
- }
}
}
}