Opened 15 years ago
Closed 15 years ago
#1307 closed defect (fixed)
FDO exception thrown up if clicking but no draging with SelectRadius
Reported by: | liuar | Owned by: | liuar |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | AJAX Viewer | Version: | 2.1.0 |
Severity: | trivial | Keywords: | |
Cc: | External ID: | 1314787 |
Description
- open basic weblayout in chrome or safari
- right click in map -> select more -> radius
- click blank area in map
Result: alert exception appears to say 'an exception occured in FDO component'. 'FdoFgfLinearRing::Reset': Cannot execute function due to invalid value for the input parameter(s) 'positions'.
IE got the same exception but not displayed.
Note:
See TracTickets
for help on using tickets.
There will be a CURVEPOLYGON created when draging or clicking if the user chooses SelectRadius.
For draging, a valid CURVEPOLYGON will be create by the center and radius.
But for clicking, the radius will be 0 and the created CURVEPOLYGON will like:
which is not a valid CURVEPOLYGON. That's why there's an exception thrown up. IE has the same problem but the exception is not displayed to user.
To resolve this problem, we can try to validate the value of the radius before creating the CURVEPOLYGON. If the value equals to 0, just return.