From: buliabyak Date: Mon, 29 Jun 2009 00:06:57 +0000 (+0000) Subject: fix imagemagick effects for file:// uris X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c77212a34f6faa9131e6da8942bae1003e03a21;p=inkscape.git fix imagemagick effects for file:// uris --- diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp index f86d0ec42..bfde84e0c 100644 --- a/src/extension/internal/bitmap/imagemagick.cpp +++ b/src/extension/internal/bitmap/imagemagick.cpp @@ -120,7 +120,10 @@ ImageMagickDocCache::readImage(const char *xlink, Magick::Image *image) image->read(blob); } else { - image->read(xlink); + if (!strncmp(xlink, "file://", 7) && strlen(xlink) > 7) + image->read(xlink + 7); + else + image->read(xlink); } }