Hi,
Apologies if the issue is already known, but I haven't found anything by making a Google search.
When I recently switched to Inkscape 0.46, I discovered that objects are no longer snapped to the grid when pasted from the clipboard. It used to work before and I was finding that quite handy. In the "Snap" tab of the Document Properties dialog box I ticked the "Enable snapping" and "Nodes" options.
The release notes for 0.46 say that grids have undergone big changes. Did that behaviour get lost during the refactoring? Is that a new option that I missed?
Many thanks for this wonderful software, Vincent
Vincent Hennebert wrote:
When I recently switched to Inkscape 0.46, I discovered that objects are no longer snapped to the grid when pasted from the clipboard. [...] Did that behaviour get lost during the refactoring?
Yes, it did get lost. I removed it because it was no longer functioning properly. I might just as well create something similar again, but I'm not sure how it should work. Given an object with lots of nodes, which node should snap to the grid? If all nodes were already aligned to the grid when copying, then while pasting snapping any node to the grid will do. But this will not be true in general and there will be nodes both on- and off-grid. Besides, we can now have multiple grids simultaneously, which one should we use?
If we know where the clipboard data was originally located (I don't know if that information is stored), then we might paste at a multiple of the grid pitch (strictly spoken: that is not snapping, but it will achieve what you're looking for).
Comments anyone?
Diederik
On Thu, Jul 31, 2008 at 12:49 PM, Diederik van Lierop <mail@...2312...> wrote:
If we know where the clipboard data was originally located (I don't know if that information is stored)
Of course it is stored - the objecty is copied with its own transform and other attributes, and that determines its position. When we "paste in place", we simply paste and nothing else; on regular paste, we paste and then move the pasted stuff to the point under cursor. This also answers your other question on snapping: paste should snap exactly the same as if the original object, without any copy/paste, was just dragged by mouse to the current location in Selector.
On Thu, Jul 31, 2008 at 3:04 PM, Diederik van Lierop <mail@...2312...> wrote:
But if we only snap to grids, then it would make more sense to me if we'd use a multiple of the grid-pitch, instead of really snapping to the grid.
You mean, move the paste objects by a multiple of the grid-pitch? That would make sense I think - so it will not really snap, but just keep it being snapped if it already was.
Thanks for your quick answers :-)
bulia byak wrote:
On Thu, Jul 31, 2008 at 3:04 PM, Diederik van Lierop <mail@...2312...> wrote:
But if we only snap to grids, then it would make more sense to me if we'd use a multiple of the grid-pitch, instead of really snapping to the grid.
You mean, move the paste objects by a multiple of the grid-pitch? That would make sense I think - so it will not really snap, but just keep it being snapped if it already was.
Pasting at a multiple of the grid-pitch looks like a reasonable solution to me. Shall I open a bug report to keep track of the issue, or is it unnecessary?
Thanks, Vincent
On Fri, 01 Aug 2008 11:30:51 +0100 Vincent Hennebert <vhennebert@...155...> wrote:
Thanks for your quick answers :-)
bulia byak wrote:
On Thu, Jul 31, 2008 at 3:04 PM, Diederik van Lierop <mail@...2312...> wrote:
But if we only snap to grids, then it would make more sense to me if we'd use a multiple of the grid-pitch, instead of really snapping to the grid.
You mean, move the paste objects by a multiple of the grid-pitch? That would make sense I think - so it will not really snap, but just keep it being snapped if it already was.
Pasting at a multiple of the grid-pitch looks like a reasonable solution to me. Shall I open a bug report to keep track of the issue, or is it unnecessary?
Thanks, Vincent
I'd like to see this too.
Vincent Hennebert wrote:
Pasting at a multiple of the grid-pitch looks like a reasonable solution to me. Shall I open a bug report to keep track of the issue, or is it unnecessary?
You can if you want to keep track of it, but it's already on my TODO list so it will be implemented sooner or later. Diederik
Vincent Hennebert wrote:
Pasting at a multiple of the grid-pitch looks like a reasonable solution to me.
It's been re-invented and committed to SVN. Please be alert for any bugs I might have introduced.
Regards,
Diederik
participants (4)
-
Abrolag
-
bulia byak
-
Diederik van Lierop
-
Vincent Hennebert