- Status Closed
- Percent Complete
- Task Type Bug Report
- Category ECMAScript
-
Assigned To
andrew - Operating System Windows 7
- Severity Low
- Priority Very Low
- Reported Version 3.26.2
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#2256 - Getting the end direction of a zero-length polyline leads to AppCrash
Andrew,
With an RPolyline shape.
That is trimmed by RPolyline.trimEndPoint(cutPoint1, RVector.invalid, false);
And what is turned into a null-shape having only one single vertex.
Getting the end orientation of such a shape lead to an Application Crach.
RPolyline.getDirection1(); Doesn’t fail and returns 0.0rad.
RPolyline.getDirection2(); Fails critical.
I would have expected 0.0rad or ‘undefined’ for both.
One can circumvent that with simply testing the nature of the RPolyline before getting the end direction, and this each time required.
Regards,
CVH
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task