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#17 - RLineEntityPointer doesn't work as function argument of type REntity*
Attached to Project:
QCAD
Opened by Anonymous Submitter - Monday, 18 April 2011, 14:05 GMT+2
Last edited by Andrew (andrew) - Monday, 16 December 2013, 14:14 GMT+2
Opened by Anonymous Submitter - Monday, 18 April 2011, 14:05 GMT+2
Last edited by Andrew (andrew) - Monday, 16 December 2013, 14:14 GMT+2
|
Details
Script code (SvgExporter.js): 245 // only export entities on main block "*Model_Space": 246 if (realEntity.getBlockId() == this.doc.getBlockId("*Model_Space")) { 247 RFileExporterAdapter.prototype.exportEntity.call(this, entity, false); 248 }
Script debugger exception: Uncaught exception at /home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:246: Error: :-1:-1: RExporter: Argument 0 is not of type REntity*. <native>(RLineEntityPointer(0xb6fb158), false) at -1 <anonymous>(entity = RLineEntityPointer(0xb6fb158), preview = false) at /home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:246 <anonymous>() at /home/martin/workspace/rsframework/scripts/File/SvgExport/SvgExporter.js:211
Workaround: Used exportEntity() with ID as argument instead. However there may be other cases where no alternative method is available. RFileExporterAdapter.prototype.exportEntity.call(this, realEntity.getId()); |
This task depends upon
The proper way to deal with this for now is to use QSharedPointer::data():
The ECMA wrappers could probably be extended to handle this automatically when needed.