Page 1 of 1

Bug: layer does not change without motion

Posted: Fri Nov 22, 2019 9:10 pm
by timscoding
Simple bug with easy, obvious, work-around.

In order to change the layer of some entity, select the entity, select the new layer, use 'mv' with reference 0 and target @0,0, and click 'use current layer/attributes'. The bug is that mv does nothing if the target is @0,0, even if 'use current layer' is selected and a different layer is current, so this does not work and the layer does not change. The work around: move the entity an inch into the new layer, then move it back. Could this be a feature?

Since I am using QCAD CE, perhaps I should submit a pull-request instead of a bug report. Not quite there yet :)

Version: 3.23.0.0 (3.23.0)
Internet: QCAD.org
Build Date: Jul 18 2019
Revision: 42e52bf
Qt Version: 5.8.0
Architecture: x86_64
Compiler: gcc 4.8.1

Re: Bug: layer does not change without motion

Posted: Fri Nov 22, 2019 9:17 pm
by andrew
How about selecting the entity and changing its layer in the property editor?

Re: Bug: layer does not change without motion

Posted: Fri Nov 22, 2019 9:25 pm
by timscoding
That works fine, of course :)

Re: Bug: layer does not change without motion

Posted: Fri Nov 22, 2019 9:43 pm
by Husky
timscoding wrote:
Fri Nov 22, 2019 9:10 pm
The bug is that mv does nothing if the target is @0,0,
No, that isn't a bug!

I don't know your settings for the "Coordinate Format" in QCAD CE but usually @ is used for Relative coordinates. If you haven't changed the Relative Zero point manually (RZ) then Zero Relative is already on 0,0. A move from 0,0 to 0,0 moves "nothing". :wink:

In your case you have to move to Absolute Zero. Check your Coordinate Format setting but I'm pretty sure MV to 0;0 will work.