diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 09:20:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 12:14:37 +0200 |
commit | 7798c5703367846fbc5681c3a6f933cedb663420 (patch) | |
tree | e6d5947d902db0123756d3a86440af688d146a7e /svx/source | |
parent | e39d011375ed0f5f26ce7a823fccb5ac93b6a8e6 (diff) |
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 <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdopath.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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())); |