svx/source/svdraw/svdopath.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 7798c5703367846fbc5681c3a6f933cedb663420
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Aug 13 09:20:19 2018 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Aug 13 12:14:37 2018 +0200

    crashtesting: empty B2DRange range turned into oversized Rectangle
    
    with document ooo47086-1.xls
    
    Change-Id: Ia43b6b3e3951875280892138c7068348f1b56a7c
    Reviewed-on: https://gerrit.libreoffice.org/58913
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 0ec0560708d9..22b0c72bcc13 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -1655,6 +1655,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()));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to