svgio/source/svgreader/svgclippathnode.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 82a8ba2815006852cfdb5b945db2f3920e8c4102
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Jul 3 17:25:36 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Jul 3 21:32:24 2023 +0200

    crashtesting: crash on import of moz610347-2.svg
    
    Change-Id: I0793d00216586bf68b4b74305bba2f352eb320bc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153888
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/svgio/source/svgreader/svgclippathnode.cxx 
b/svgio/source/svgreader/svgclippathnode.cxx
index 764c874dbe5f..387f7af553e1 100644
--- a/svgio/source/svgreader/svgclippathnode.cxx
+++ b/svgio/source/svgreader/svgclippathnode.cxx
@@ -151,7 +151,7 @@ namespace svgio::svgreader
                     // merge to single clipPolyPolygon
                     aClipPolyPolygon = 
basegfx::utils::mergeToSinglePolyPolygon(rResult);
                 }
-                else
+                else if (nSize != 0)
                 {
                     aClipPolyPolygon = rResult[0];
                 }

Reply via email to