Kaydet (Commit) e51aa80e authored tarafından Noel Grandin's avatar Noel Grandin

fix assert in make screenshot

after
    commit a46a2577
    Date:   Wed Jun 5 15:24:04 2019 +0200
    improve empty tools::Rectangle (width)

Change-Id: I496d92712aa7627f7d6932d7d01f70a68a1ee781
Reviewed-on: https://gerrit.libreoffice.org/73657Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 03d33ba9
......@@ -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 );
......
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