[Libreoffice-commits] core.git: svgio/source

Julien Nabet serval2412 at yahoo.fr
Sun Jul 24 14:20:42 UTC 2016


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

New commits:
commit b7a18f18efbba086454e3b5ec157b156980f97b6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Jul 23 22:42:55 2016 +0200

    tdf#101070: svg/insert, avoid infinite recursive loop when referencing oneself
    
    See bt https://bugs.documentfoundation.org/attachment.cgi?id=126377
    
    Change-Id: I3c6546a5449fc42613e30a7f45f31862752b7187
    Reviewed-on: https://gerrit.libreoffice.org/27468
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx
index 074f46f..533389d 100644
--- a/svgio/source/svgreader/svgimagenode.cxx
+++ b/svgio/source/svgreader/svgimagenode.cxx
@@ -242,7 +242,7 @@ namespace svgio
                                     << e.getMessage() << "\"");
                         }
 
-                        if (!aAbsUrl.isEmpty())
+                        if (!aAbsUrl.isEmpty() && !rPath.equals(aAbsUrl))
                         {
                             SvFileStream aStream(aAbsUrl, STREAM_STD_READ);
                             Graphic aGraphic;


More information about the Libreoffice-commits mailing list