diff options
-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 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())); |