diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-07 14:14:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-07 16:23:00 +0200 |
commit | e51aa80ea31cd4494bc4259b0faf8aeaff2e0287 (patch) | |
tree | afb9e2da07855da7690f4b25b93152376ed52cd6 /vcl | |
parent | 03d33ba9410433d2072364b3afb9dbd6b19c4d0d (diff) |
fix assert in make screenshot
after
commit a46a257794f1f53b294735fc876c394be23a3811
Date: Wed Jun 5 15:24:04 2019 +0200
improve empty tools::Rectangle (width)
Change-Id: I496d92712aa7627f7d6932d7d01f70a68a1ee781
Reviewed-on: https://gerrit.libreoffice.org/73657
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 864214b66e43..4c954b4fe6d1 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -805,7 +805,7 @@ void PushButton::ImplDrawPushButtonContent(OutputDevice* pDev, DrawFlags nDrawFl DrawSymbolFlags nStyle; if( aInRect.Right() < aInRect.Left() || aInRect.Bottom() < aInRect.Top() ) - aInRect.SetEmpty(); + return; // nothing to do pDev->Push( PushFlags::CLIPREGION ); pDev->IntersectClipRegion( aInRect ); |