From fd4a089df684a38cff18e77217961ee4bee0c497 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 8 May 2022 15:30:42 +0100 Subject: ofz#46607 Integer-overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id759423176b2e47fc00b8e7babd936b480956617 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134025 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/headless/SvpGraphicsBackend.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl/headless/SvpGraphicsBackend.cxx') 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 @@ -154,6 +154,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; -- cgit