[Bug 1823] New: ROI tools: cannot make another after DeregisterEvent

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 1823] New: ROI tools: cannot make another after DeregisterEvent

by Bugzilla from bugzilla-daemon@bugzilla.maptools.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://bugzilla.maptools.org/show_bug.cgi?id=1823

           Summary: ROI tools: cannot make another after DeregisterEvent
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev@...
        ReportedBy: benftee@...


I found that after calling CWCROIManager->roi has no props, I could not create
another ROI. There was a javascript error: "roi has no properties"

Found a fix. In cwc_roi.js, there is an array called this.events, each element
of which is an array of codes to execute when the event is triggered

But, function DeregisterEvent clobbers the whole array:empty array:
this.events[i] = "";
...this causes a crash when an attempt is made to fetch the event

instead of blanking just the sub-array element, like this:
this.events[event][i] = "";//FIXES IT



------- 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.
_______________________________________________
Chameleon-dev mailing list
Chameleon-dev@...
http://lists.maptools.org/mailman/listinfo/chameleon-dev