From b8e959420c0a1f34995b5186adf1f4bf4ac30858 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 19 Sep 2013 17:52:49 +0200 Subject: Remove a warning when embedding an image with a mimetype which is not directly handled by Cairo (bzr r12542) --- src/sp-image.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sp-image.cpp b/src/sp-image.cpp index b4125d01b..47d8287b4 100644 --- a/src/sp-image.cpp +++ b/src/sp-image.cpp @@ -863,13 +863,9 @@ void sp_embed_image(Inkscape::XML::Node *image_node, Inkscape::Pixbuf *pb) data = const_cast(pb->getMimeData(len, data_mimetype)); if (data == NULL) { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - Glib::ustring quality = Glib::ustring::format(prefs->getInt("/dialogs/import/quality", 100)); - // if there is no supported MIME data, embed as PNG data_mimetype = "image/png"; - gdk_pixbuf_save_to_buffer(pb->getPixbufRaw(), reinterpret_cast(&data), &len, "png", NULL, - "quality", quality.c_str(), NULL); + gdk_pixbuf_save_to_buffer(pb->getPixbufRaw(), reinterpret_cast(&data), &len, "png", NULL, NULL); free_data = true; } -- cgit v1.2.3