Kaydet (Commit) b7a18f18 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

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/27468Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 90517f40
...@@ -242,7 +242,7 @@ namespace svgio ...@@ -242,7 +242,7 @@ namespace svgio
<< e.getMessage() << "\""); << e.getMessage() << "\"");
} }
if (!aAbsUrl.isEmpty()) if (!aAbsUrl.isEmpty() && !rPath.equals(aAbsUrl))
{ {
SvFileStream aStream(aAbsUrl, STREAM_STD_READ); SvFileStream aStream(aAbsUrl, STREAM_STD_READ);
Graphic aGraphic; Graphic aGraphic;
......
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