| Summary: | PointListUtilities.calculatePointRelativeToLine returns null with zero-sized connections | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Romain Raugi <romain.raugi> | ||||
| Component: | General | Assignee: | Alex Boyko <aboyko> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | aboyko, ahunter.eclipse, lizeray, romain.raugi | ||||
| Version: | 2.2.2 | ||||||
| Target Milestone: | 1.4.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Romain Raugi
GMF 2.2.1 and 2.2.2, not 1.2.1 and 1.3.0. Created attachment 178109 [details]
patch
That looks like a bad fix from me.
Changed PointListUtilities#getLineSegments(PointList) not to create linesegments where origin == terminal. Methods working with a line created going through line segment threw exceptions and felt like a line segment with origin == terminus is not really a line segment and hence cannot be treated as such.
Seems like it's too late for this adjustment. Hence, I'm reverting the fix for PointListUtilities#getLineSegments(PointList) and removing segments where origin == terminus myself where they need to be removed.
Patch attached.
Anthony, can you please review this fix?
(In reply to comment #2) > Created an attachment (id=178109) [details] > patch > > That looks like a bad fix from me. > > Changed PointListUtilities#getLineSegments(PointList) not to create > linesegments where origin == terminal. Methods working with a line created > going through line segment threw exceptions and felt like a line segment with > origin == terminus is not really a line segment and hence cannot be treated as > such. > Seems like it's too late for this adjustment. Hence, I'm reverting the fix for > PointListUtilities#getLineSegments(PointList) and removing segments where > origin == terminus myself where they need to be removed. > > Patch attached. > > Anthony, can you please review this fix? OK, sounds good. The patch is good to commit. Alex, can you commit today (now) so we can run RC3? Sorry for the late delivery. Delivered to R1_4_maintenance and HEAD. |