diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp
index bfde84e0c4182dda059a564587738b939f1552d7..e907612fdaa093098e27d6f361e7976d7aa7a26e 100644 (file)
image->read(blob);
}
else {
- if (!strncmp(xlink, "file://", 7) && strlen(xlink) > 7)
- image->read(xlink + 7);
- else
- image->read(xlink);
+ const gchar *path = xlink;
+ if (strncmp (xlink,"file:", 5) == 0) {
+ path = g_filename_from_uri(xlink, NULL, NULL);
+ }
+
+ try {
+ image->read(path);
+ } catch (...) {}
}
+ g_free(search);
}
bool