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#160 - SplitIntoEqualParts.js: Uncaught exception

Attached to Project: QCAD
Opened by Anonymous Submitter - Monday, 08 August 2011, 16:41 GMT+2
Last edited by Andrew (andrew) - Monday, 08 August 2011, 17:15 GMT+2
Task Type Bug Report
Category ECMAScript
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Medium
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


    for (var i = 0; i < this.parts; ++i) {
        var p1 = startPoint.operator_add(off.operator_multiply(i));
        var p2 = p1.operator_add(off);
        var line = new RLineEntity(doc, new RLineData(p1, p2));
=>      line.copyAttributesFrom(argLine);
        op.addObject(line, false);
Uncaught exception at scripts/Modify/SplitIntoEqualParts/SplitIntoEqualParts.js:174: Error: :-1:-1: REntity: Argument 0 is not of type REntity *REntity *.
<native>(RLineEntityPointer(0xb73b4c8)) at -1
<anonymous>(op = RAddObjectsOperation(0xb733790), argLine = RLineEntityPointer(0xb73b4c8)) at scripts/Modify/SplitIntoEqualParts/SplitIntoEqualParts.js:174
<anonymous>(op = RAddObjectsOperation(0xb733790)) at scripts/Modify/SplitIntoEqualParts/SplitIntoEqualParts.js:111
<anonymous>(true) at scripts/Modify/SplitIntoEqualParts/SplitIntoEqualParts.js:95
<anonymous>() at /home/martin/workspace/rsframework/scripts/Modify/../EAction.js:1150
<anonymous>() at scripts/Modify/SplitIntoEqualParts/SplitIntoEqualParts.js:73
<global>() at -1
174	        line.copyAttributesFrom(argLine);

qsdb> argLine
This task depends upon

Closed by  Andrew (andrew)
Monday, 08 August 2011, 17:15 GMT+2
Reason for closing:  Fixed