diff options
| author | Aaron Spike <aaron@ekips.org> | 2006-04-24 12:08:26 +0000 |
|---|---|---|
| committer | acspike <acspike@users.sourceforge.net> | 2006-04-24 12:08:26 +0000 |
| commit | 55e84c4db136fdb5dfa84c21681ccef8bbffb6d0 (patch) | |
| tree | 99c8cdb8ac1d5b744f2ab1c240284a6c1cdc3bac /src | |
| parent | refactor redrawing code into pen_redraw_all; cancel current unfinished path, ... (diff) | |
| download | inkscape-55e84c4db136fdb5dfa84c21681ccef8bbffb6d0.tar.gz inkscape-55e84c4db136fdb5dfa84c21681ccef8bbffb6d0.zip | |
fit_canvas_to_drawing when opening images
(bzr r581)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/internal/gdkpixbuf-input.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp index 34e6c09fd..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 { |
