diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-08 15:30:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-08 20:33:58 +0200 |
commit | fd4a089df684a38cff18e77217961ee4bee0c497 (patch) | |
tree | eb4bdb005683b618ebfacb2f5370b202fc9bf66a /vcl/headless/SvpGraphicsBackend.cxx | |
parent | e8b38f770012d2dad923c8a174ba4e9553db9afa (diff) |
ofz#46607 Integer-overflow
Change-Id: Id759423176b2e47fc00b8e7babd936b480956617
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless/SvpGraphicsBackend.cxx')
-rw-r--r-- | vcl/headless/SvpGraphicsBackend.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/headless/SvpGraphicsBackend.cxx b/vcl/headless/SvpGraphicsBackend.cxx index 223b333e9bef..14a9a017ed94 100644 --- a/vcl/headless/SvpGraphicsBackend.cxx +++ b/vcl/headless/SvpGraphicsBackend.cxx @@ -155,6 +155,11 @@ void SvpGraphicsBackend::drawLine(tools::Long nX1, tools::Long nY1, tools::Long void SvpGraphicsBackend::drawRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) { + implDrawRect(nX, nY, nWidth, nHeight); +} + +void SvpGraphicsBackend::implDrawRect(double nX, double nY, double nWidth, double nHeight) +{ // because of the -1 hack we have to do fill and draw separately Color aOrigFillColor = m_rCairoCommon.m_aFillColor; Color aOrigLineColor = m_rCairoCommon.m_aLineColor; |