diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2013-09-19 15:52:49 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2013-09-19 15:52:49 +0000 |
| commit | b8e959420c0a1f34995b5186adf1f4bf4ac30858 (patch) | |
| tree | 53496103536d0c0f8d7dd63a6ba789fc7201a06e /src/sp-image.cpp | |
| parent | Fix colors when tracing (diff) | |
| download | inkscape-b8e959420c0a1f34995b5186adf1f4bf4ac30858.tar.gz inkscape-b8e959420c0a1f34995b5186adf1f4bf4ac30858.zip | |
Remove a warning when embedding an image with a mimetype which is not
directly handled by Cairo
(bzr r12542)
Diffstat (limited to 'src/sp-image.cpp')
| -rw-r--r-- | src/sp-image.cpp | 6 |
1 files changed, 1 insertions, 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<guchar *>(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<gchar**>(&data), &len, "png", NULL, - "quality", quality.c_str(), NULL); + gdk_pixbuf_save_to_buffer(pb->getPixbufRaw(), reinterpret_cast<gchar**>(&data), &len, "png", NULL, NULL); free_data = true; } |
