- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System All
- Severity Medium
- Priority Very Low
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Attached to Project: QCAD Bugtracker
Opened by Anonymous Submitter - 05.08.2011
Last edited by Anonymous Submitter - 08.08.2011
Opened by Anonymous Submitter - 05.08.2011
Last edited by Anonymous Submitter - 08.08.2011
FS#157 - rotate causes uncaught exception
- draw line
- Modify → Rotate
- center point: line end point
- delete original
- angle 90°
Uncaught exception at scripts/Modify/Rotate/Rotate.js:117: Error: :-1:-1: Wrong number/types of arguments for RDocumentInterface.applyOperation(). <native>(undefined) at -1 <anonymous>(event = RCoordinateEvent(0xbfffd478), preview = false) at scripts/Modify/Rotate/Rotate.js:117 <anonymous>(event = RCoordinateEvent(0xbfffd478)) at /home/martin/workspace/rsframework/scripts/Modify/../EAction.js:1197 <global>() at -1 117 di.applyOperation(this.getOperation(false));
Closed by Anonymous Submitter
08.08.2011 15:27
Reason for closing: Fixed
08.08.2011 15:27
Reason for closing: Fixed
I cannot reproduce that.
Can you try again?
If the debugger shows, what is the return value of "this.getOperation(false)"?
If that is undefined, can you try to step into this.getOperation(false) and see where it fails?
Committed potential fix. The tool might not do anything anymore though, if this.centerPoint is NULL.
nope, still the same
similar problem with scale:
I still cannot reproduce this here.
I've added some debugging output to Rotate.js. Can you pls post the output here? Thx.
Edit: I've also added some fail safe code, it might not show the same symptoms anymore.
doesn't crash anymore, but does nothing now
Thanks. I can reproduce it now. Looks like under Linux there's a focus change when the dialog opens. I can simulate that by switching applications. Will try to fix.
rotate should be fixed now, please confirm, then I'll fix scale
yes, the dialog is surrounded with a blue border, means it has he focus (the focus taken away from the main window)
rotate is OK now
OK, updated scale as well.