vcl/qt5/Qt5Graphics_GDI.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 3ff158c41d6e17e75773f28f8e1808702edd81a6 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Oct 13 17:05:11 2018 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Oct 13 17:09:17 2018 +0200 Fix 00e10ae3189a4407ffb1a48f836cd52dc9a1b6df Sorry my fault since my review was wrong Change-Id: I8bac7232434b0b4ea808176df9cde33f06bfbc6e Reviewed-on: https://gerrit.libreoffice.org/61741 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx index 91c4c889bc18..f750d1c34ca0 100644 --- a/vcl/qt5/Qt5Graphics_GDI.cxx +++ b/vcl/qt5/Qt5Graphics_GDI.cxx @@ -36,8 +36,9 @@ static const basegfx::B2DPoint aHalfPointOfs(0.5, 0.5); static void AddPolygonToPath(QPainterPath& rPath, const basegfx::B2DPolygon& rPolygon, bool bClosePath, bool bPixelSnap, bool bLineDraw) { + const int nPointCount = rPolygon.count(); // short circuit if there is nothing to do - if (rPolygon.count() == 0) + if (nPointCount == 0) return; const bool bHasCurves = rPolygon.areControlPointsUsed(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits