From: Scott H. <sco...@us...> - 2005-05-29 23:11:17
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8862/src/org/actionstep Modified Files: NSMatrix.as Log Message: bug fix in getRowColumnForPoint where the aPoint argument was assumed to be local, not global. it should be global. Index: NSMatrix.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSMatrix.as,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** NSMatrix.as 27 May 2005 06:24:12 -0000 1.11 --- NSMatrix.as 29 May 2005 23:11:08 -0000 1.12 *************** *** 1410,1413 **** --- 1410,1414 ---- public function getRowColumnForPoint(aPoint:NSPoint):Object { + aPoint = convertPointFromView(theEvent.mouseLocation, null); var colWidth:Number = m_cellsize.width + m_cellspacing.width; var rowHeight:Number = m_cellsize.height + m_cellspacing.height; *************** *** 1771,1775 **** // Get the location of the cell, then the cell itself (if available). // - var pt:NSPoint = convertPointFromView(theEvent.mouseLocation, null); var loc:Object = getRowColumnForPoint(pt); --- 1772,1775 ---- |