Kaydet (Commit) 7798c570 authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e39d0113
......@@ -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()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment