diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-11-14 21:07:46 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-11-14 21:07:46 +0000 |
| commit | cb9e6af760a61d057ee679637bb8728c5d132dc7 (patch) | |
| tree | 98340affad496187bfd9f271222dff0bb9a461da /src/selection-chemistry.cpp | |
| parent | Snap to intersections of line segments (diff) | |
| download | inkscape-cb9e6af760a61d057ee679637bb8728c5d132dc7.tar.gz inkscape-cb9e6af760a61d057ee679637bb8728c5d132dc7.zip | |
A pasted selection is supposed to snap to the grid, but this cannot work the way its implemented currently. If one of the points is currently snapped, then how can we make sure that that SAME point is snapped again after pasting? If it's another point that snaps, then this is useless...
Furthermore it's also buggy currently (it messes up the grid snapping sensitivity), so I'm removing this functionality. If someone wants it back, we should rather round the paste offset to a multiple of the grid pitch. This way, something that was snapped to the grid before will stay snapped after pasting.
(bzr r4083)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 95a2cac0d..e5e2cdc01 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -1161,15 +1161,10 @@ void sp_selection_paste(bool in_place) m -= sel_bbox->midpoint(); } - /* Snap the offset of the new item(s) to the grid */ - SnapManager &sm = desktop->namedview->snap_manager; - SnapManager::SnapperList gs = sm.getGridSnappers(); - m = sm.freeSnapAlways(Inkscape::Snapper::SNAPPOINT_NODE, m, NULL, gs).getPoint(); sp_selection_move_relative(selection, m); } - sp_document_done(document, SP_VERB_EDIT_PASTE, - _("Paste")); + sp_document_done(document, SP_VERB_EDIT_PASTE, _("Paste")); } void sp_selection_paste_style() |
