diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-05-02 19:48:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-03 08:38:24 +0200 |
commit | 5dad1d93a938cf995fd533b0c6a5cb7b0284f5c0 (patch) | |
tree | e940530492f3edf32b547fac92a509b6736df131 /vcl | |
parent | 13e49b4690f873b06175fe7b15454cba3c1e7a67 (diff) |
sal_uLong->sal_Int32 in Button
Change-Id: Ib2a9f8eecbeee4de1ac8f0fc1a5bfa93f6746d48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115008
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index b08cc9772d62..d6529c8bf311 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -205,7 +205,7 @@ DrawTextFlags Button::ImplGetTextStyle( WinBits nWinStyle, DrawFlags nDrawFlags void Button::ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, Size& rSize, - sal_uLong nImageSep, + sal_Int32 nImageSep, DrawTextFlags nTextStyle, tools::Rectangle *pSymbolRect, bool bAddImageSep) { @@ -842,7 +842,7 @@ void PushButton::ImplDrawPushButtonContent(OutputDevice *pDev, DrawFlags nDrawFl Size aSize = rRect.GetSize(); Point aPos = rRect.TopLeft(); - sal_uLong nImageSep = 1 + (pDev->GetTextHeight()-10)/2; + sal_Int32 nImageSep = 1 + (pDev->GetTextHeight()-10)/2; if( nImageSep < 1 ) nImageSep = 1; if ( mnDDStyle == PushButtonDropdownStyle::MenuButton || |