← All bug reports

FS#175Trim.js: uncaught exception for ellipse / ellipse arcs

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Medium
Priority
Low
Reported version
Development
Operating system
All
Reported
2011-08-16 by anonymous
Closed
2011-08-16 by andrew
  1. draw line as limiting entity
  2. draw ellipse and ellipse arc, both intersecting
  3. modify -> trim
  4. select the diagonal line as limiting entity
  5. move around with the mouse over ellipse or ellipse arc -> crash
Uncaught exception at scripts/Modify/Trim/Trim.js:267: TypeError: Result of expression
'trimmed1.trimStartPoint' [undefined] is not a function.
267	        trimmed1.trimStartPoint(is);
qsdb> .backtrace
#0  <anonymous>(op = RMixedOperation(0xc37b998), limitingEntity = RLineEntityPointer(0xc20c098),
limitingShape = RLine(RShape(address: "0xc217bd8"), startPoint: RVector(40, 36, 0) ,
endPoint:  RVector(-3, -3, 0) ) , limitingPos = RVector(2.81463, 1.47073, 0) ,
trimEntity = REllipseEntityPointer(0xc3775f8), trimPos = RVector(12.4488, 5.03537, 0) ,
trimBoth = false, preview = true) at scripts/Modify/Trim/Trim.js:267
#1  <anonymous>(preview = true) at scripts/Modify/Trim/Trim.js:167
#2  <anonymous>() at /home/martin/workspace/rsframework/scripts/Modify/../EAction.js:1150
#3  <anonymous>(event = REntityPickEvent(0xbfffd3c8), preview = true) at scripts/Modify/Trim/Trim.js:147
#4  <anonymous>(event = REntityPickEvent(0xbfffd3c8)) at /home/martin/workspace/rsframework/scripts/Modify/../EAction.js:1225
#5  <global>() at -1