- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System All
- Severity Medium
- Priority Very Low
- Reported Version 3 RC4
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#520 - move entity from command line is broken on ubuntu 64 bit
when I try to move an entity via the command line using the mv command the entity does not move to the specified position. it works if i use the mouse. this was fine in rc2 and rc3 ubuntu 64 bit and windows 64 bit machines.
Unable to reproduce here.
Please include exact steps (command line input, clicks, etc) to reproduce.
launch qcad trial from command line (terminal) with ./qcad-trial
in qcad draw a line segment with the mouse (angled 45 degrees length 10 mm)
select the line segment
type the command mv
type the command se
select the first vertex of the line segment
press the space bar
type the command @0,25
press enter
select the delete original
select OK button
the line does not move 25 mm in the y-direction. sometimes it moves randomly sometimes it does not move at all.
Can you please make sure that the position of the relative zero point is not locked (Snap - Lock Relative Zero)?
When choosing the reference point, a small red circle should appear at the reference point if the relative zero point position is not locked.
You also might want to try to enter an absolute coordinate to figure out if this is connected to the relative zero point at all.
Thanks.
@andrew
i just tried the same set of commands on my windows machine at work and it preforms correctly.
i will make a video tonight of the steps that produce the bug on my ubuntu machine as well as the notes you made above and report back.
I am now able to reproduce this and the problem is fixed for the next update.
Thanks for the report.
@andrew
is this a change to a javascript element or to the kernel? if it is a .js modification can you post what it is so I can make the change manually on my machine?
I cannot post the while files since other things have changed that will break with RC4.
But here are the files / functions you'd have to adjust (you might want to backup the original files first):
EAction.js:
"EAction.prototype.setState: invalid state"
Translate.js:
// dialog cancelled:
Please let me know if there are any problems with this patch as I might have forgotten something.