QCAD - 2D CAD System.
Click here for a documentation of the DokuWiki formatting syntax that can be used in reports
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#157 - rotate causes uncaught exception
Attached to Project:
QCAD
Opened by Martin (martin) - Friday, 05 August 2011, 14:30 GMT+2
Last edited by Martin (martin) - Monday, 08 August 2011, 17:27 GMT+2
Opened by Martin (martin) - Friday, 05 August 2011, 14:30 GMT+2
Last edited by Martin (martin) - Monday, 08 August 2011, 17:27 GMT+2
|
Details
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)); |
This task depends upon
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.