- 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));
Comments (12)
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.