From 40686d6c2fcccadc2004f187c443f105ef5fe070 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 5 Aug 2024 16:03:44 +0100 Subject: cid#1607096 silence Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifa89ef67ffd7f5842c60a34f6705365f3de94770 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171570 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- slideshow/source/engine/slideshowimpl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'slideshow/source/engine/slideshowimpl.cxx') diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index 7a6d5e8f34d3..e9df84afe339 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1608,14 +1608,15 @@ void SlideShowImpl::registerUserPaintPolygons( const uno::Reference< lang::XMult if (aPoly.count() > 1) // otherwise skip it, count should be 2 { - if (aDrawingPoints.count() == 0) + const auto ptCount = aDrawingPoints.count(); + if (ptCount == 0) { aDrawingPoints.append(aPoly); pFirstPolyPoly = pPolyPoly; continue; } basegfx::B2DPoint aLast - = aDrawingPoints.getB2DPoint(aDrawingPoints.count() - 1); + = aDrawingPoints.getB2DPoint(ptCount - 1); if (aPoly.getB2DPoint(0).equal(aLast)) { aDrawingPoints.append(aPoly, 1); -- cgit