diff options
| author | Thomas Holder <speleo3@users.sourceforge.net> | 2009-05-17 15:53:51 +0000 |
|---|---|---|
| committer | speleo3 <speleo3@users.sourceforge.net> | 2009-05-17 15:53:51 +0000 |
| commit | 998b27373d466c7efc903500f41b803a374c1fe9 (patch) | |
| tree | 3415f889350d57cea1118cc6b40eb1eba9fb1624 /src/file.cpp | |
| parent | Dutch translation update by Kris (diff) | |
| download | inkscape-998b27373d466c7efc903500f41b803a374c1fe9.tar.gz inkscape-998b27373d466c7efc903500f41b803a374c1fe9.zip | |
remove temporary prefs hack
(bzr r7895)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/file.cpp b/src/file.cpp index 80b424f5d..136d946b9 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1017,19 +1017,14 @@ file_import(SPDocument *in_doc, const Glib::ustring &uri, Geom::Matrix affine = SP_ROOT(SP_DOCUMENT_ROOT(doc))->c2p * sp_item_i2doc_affine(SP_ITEM(place_to_insert)).inverse(); sp_selection_apply_affine(selection, desktop->dt2doc() * affine * desktop->doc2dt(), true, false); - // To move the imported object, we must temporarily set the "transform pattern with - // object" option. + // move to mouse pointer { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool const saved_pref = prefs->getBool("/options/transform/pattern", true); - prefs->setBool("/options/transform/pattern", true); sp_document_ensure_up_to_date(sp_desktop_document(desktop)); Geom::OptRect sel_bbox = selection->bounds(); if (sel_bbox) { Geom::Point m( desktop->point() - sel_bbox->midpoint() ); - sp_selection_move_relative(selection, m); + sp_selection_move_relative(selection, m, false); } - prefs->setBool("/options/transform/pattern", saved_pref); } } |
