QCAD Bugtracker

  • Status Assigned
  • Percent Complete
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
  • Operating System macOS (All)
  • Severity Very Low
  • Priority Very Low
  • Reported Version 3.24.2
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Jeff Gross - 18.02.2020

FS#2048 - Move / Copy to current layer fails when reference point equals target point

QCAD 3.24.2 / macOS x86_64 10.14.6

Starting with empty doc:
1. Draw any object (e.g. a rectangle) on layer 0.
2. Create new layer (”1”) with color, say yellow.
3. Select new layer
4. Select new object
5. Modify → Move / Copy
6. Click reference point
7. Click target point same as reference point
8. In “Move / Copy Options” dialog, select “Delete Original” and check “Use current layer and attributes.” Click OK.

The moved object stays on the layer it was previously on. Using “Move / Copy” as a quick way to move a selection between layers is not useful even though it appears to be the recommended way in a Google search.

Note: if “Keep Original” is selected instead, the copied object is placed on the current layer and the original object remains on its layer, as expected.

Note: if the target point is different from the reference point, the moved object is placed on the current layer as expected.

There are other workarounds too, cut / paste with “To current layer” checked seems to work, as does chaging the layer in the Properties Editor.

Husky commented on 22.02.2020 21:31

This bugreport received my attention - simply out of curiosity ...

Yes, regarding to your description it fails - but not really surprisingly because you try to change the layer with a tool that was not made for it.

Using “Move / Copy” as a quick way to move a selection between layers is not useful even though it appears to be the recommended way in a Google search.«

It is certainly not the recommended way from QCAD!

The recommended way from QCAD is to select the entities and use the Property Editor to change the layer.

I don't think you'll find a more accurate and faster way than that even with a Google search ;-)

Jeff Gross commented on 23.02.2020 01:02

Thanks for looking at this. I apologize for saying this was the "recommended" way. When I Google "qcad move block between layers", the top hit is this forum post. You can see the last post before the thread was locked reads:

select the reference point and target point. For just moving between layers, you probably want to use the same point for both

Well, I just noticed that was from a first time poster AND was in 2007! So, my bad for taking it as good advice!

I see the most straightforward way to move between layers is to use the Property Editor. Another neat way I found is to double-click the destination layer in the Layer List.

However I still think this is a bug (albeit a low priority one). Might it be possible to "move with a layer change" from the command line or script where perhaps computations are used in the reference or target points and the user does not realize the math would produce the same point? In this case, the layer change would still be expected. I'm guessing the code is checking the reference and target point and if they are equal, does not complete the move, but that logic should also check if the layers are different. Maybe a stretch of a use case...


Available keyboard shortcuts


Task Details

Task Editing