| Summary: | Fix Path#getBounds() for paths with cubic curve segments. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF Geometry | Assignee: | Matthias Wienand <matthias.wienand> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 (Neon) RC4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
I added test cases for the Path#getBounds() method. The tests compare manually computed bounds with the bounds returned by Path#getBounds(). The tests are failing for paths with cubic segments. The bounds computation was based on AWT. I ensured that the bounds are now computed based on the individual path segments, without delegating to AWT. The computed bounds are tightly enclosing the path. The code is published on the master branch, therefore, I resolve this ticket as fixed for 4.0.0 RC4. |