X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fextension%2Finternal%2Fgdkpixbuf-input.cpp;h=eadae090fd0bb0570141933ba935364fc7852d92;hb=3027d46e220d40848a2a56135aa0cbe2384c2ae4;hp=ee9fc408637de5e03e1622bcf647026d5b147add;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp index ee9fc4086..eadae090f 100644 --- a/src/extension/internal/gdkpixbuf-input.cpp +++ b/src/extension/internal/gdkpixbuf-input.cpp @@ -6,6 +6,7 @@ #include "prefs-utils.h" #include "extension/system.h" #include "gdkpixbuf-input.h" +#include "selection-chemistry.h" namespace Inkscape { @@ -88,6 +89,8 @@ GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri) SP_DOCUMENT_ROOT(doc)->appendChildRepr(repr); Inkscape::GC::release(repr); gdk_pixbuf_unref(pb); + //alter the canvas size to fit the image size + fit_canvas_to_drawing(doc); // restore undo, as now this document may be shown to the user if a bitmap was opened sp_document_set_undo_sensitive(doc, TRUE); } else { @@ -97,6 +100,7 @@ GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri) return doc; } +#include "clear-n_.h" void GdkpixbufInput::init(void) @@ -131,7 +135,7 @@ GdkpixbufInput::init(void) gchar *xmlString = g_strdup_printf( "\n" - "%s GDK pixbuf Input\n" + "" N_("%s GDK pixbuf Input") "\n" "org.inkscape.input.gdkpixbuf.%s\n" "\n" ".%s\n"