[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Aug 14 12:07:18 UTC 2018
svx/source/svdraw/svdopath.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit eabb2bf06aba0de81a6d1e7715859fa63379325b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 13 09:20:19 2018 +0100
Commit: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Tue Aug 14 14:06:56 2018 +0200
crashtesting: empty B2DRange range turned into oversized Rectangle
with document ooo47086-1.xls
Change-Id: Ia43b6b3e3951875280892138c7068348f1b56a7c
Reviewed-on: https://gerrit.libreoffice.org/58921
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index c1ff60b573cd..dd4b02e4bb8b 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -1659,6 +1659,9 @@ static tools::Rectangle lcl_ImpGetBoundRect(const basegfx::B2DPolyPolygon& rPoly
{
basegfx::B2DRange aRange(basegfx::utils::getRange(rPolyPolygon));
+ if (aRange.isEmpty())
+ return tools::Rectangle();
+
return tools::Rectangle(
FRound(aRange.getMinX()), FRound(aRange.getMinY()),
FRound(aRange.getMaxX()), FRound(aRange.getMaxY()));
More information about the Libreoffice-commits
mailing list