[Chameleon-dev] [Bug 1032] New: ROICircle javascript code bug
(cwc_roi.js file)
bugzilla-daemon at maptools.org
bugzilla-daemon at maptools.org
Sun May 15 07:31:29 EDT 2005
http://www.maptools.org/bugzilla/show_bug.cgi?id=1032
Summary: ROICircle javascript code bug (cwc_roi.js file)
Product: Chameleon
Version: 2.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: bartvde at xs4all.nl
Bug is in 2.0 and 2.2 versions.
There is a bug in the ROICircle javascript code. I am using the ROICircle
javascript code not through the ROICircle widget but from a custom javascript
code sniplet.
The bug is in:
CWCCircleROI_Serialize
The values were just added together as strings, so if I had a click at X 250
pixels and a radius defined of 50, the x coordinate going into the Pix2Geo
function would be 25050!
The fix is using parseInt:
aRadius = this.manager.Pix2Geo( parseInt(this.centerX) + parseInt(this.radius),
this.centerY );
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list