← All bug reports

FS#160SplitIntoEqualParts.js: Uncaught exception

Type
Bug
Status
Closed
Resolution
Fixed
Category
ECMAScript
Severity
Medium
Priority
Low
Reported version
Development
Operating system
All
Reported
2011-08-08 by anonymous
Closed
2011-08-08 by andrew
    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
RLineEntityPointer(0xb73b4c8)